code: def testCommonAndNumPyMetricsTwoDimension(self):
      a = [1.2, 3.4]
      b = [5.4, -7.1]
      npa = numpy.array(a)
      npb = numpy.array(b)
  
      assertion.eq(
          metric.euclidean_distance(a, b),
          metric.euclidean_distance_numpy(npa, npb),
      )
      assertion.eq(
          metric.euclidean_distance_square(a, b),
          metric.euclidean_distance_square_numpy(npa, npb),
      )
      assertion.eq(
          metric.manhattan_distance(a, b),
          metric.manhattan_distance_numpy(npa, npb),
      )
      assertion.eq(
          metric.chebyshev_distance(a, b),
          metric.chebyshev_distance_numpy(npa, npb),
      )
      assertion.eq(
          metric.minkowski_distance(a, b, 2),
          metric.minkowski_distance_numpy(npa, npb, 2),
      )
      assertion.eq(
          metric.minkowski_distance(a, b, 4),
          metric.minkowski_distance_numpy(npa, npb, 4),
      )
      assertion.eq(
          metric.canberra_distance(a, b),
          metric.canberra_distance_numpy(npa, npb),
      )
      assertion.eq(
          metric.chi_square_distance(a, b),
          metric.chi_square_distance_numpy(npa, npb),
      )
      assertion.eq(
          metric.chi_square_distance(a, b),
          metric.chi_square_distance_numpy(npa, npb),
      )
  
      gower = metric.distance_metric(
          metric.type_metric.GOWER, data=[a, b], numpy_usage=False
      )
      gower_numpy = metric.distance_metric(
          metric.type_metric.GOWER, data=[a, b], numpy_usage=True
      )
      assertion.eq(gower(a, b), gower_numpy(npa, npb))
  
file_path: pyclustering/pyclustering/utils/tests/unit/ut_metric.py
imports: import unittest
  import matplotlib
  import numpy
  from pyclustering.tests.assertion import assertion
  import pyclustering.utils.metric
label_desc: Use image node_id 11 for calling the MetricUnitTest obj's underlying member method code with example usage: obj.testCommonAndNumPyMetricsTwoDimension() without return types