MAINT Move DistanceMetric
under metrics
#21177
Merged
DistanceMetric
under metrics
#21177