On the classification of functions in separable metric spaces