code: def testClusterAllocationSampleSimple1UserDefined(self):
      metric = distance_metric(
          type_metric.USER_DEFINED,
          func=distance_metric(type_metric.EUCLIDEAN),
      )
      KmediansTestTemplates.templateLengthProcessData(
          SIMPLE_SAMPLES.SAMPLE_SIMPLE1,
          [[3.7, 5.5], [6.7, 7.5]],
          [5, 5],
          False,
          metric=metric,
      )
  
imports: import unittest
  import numpy
  import matplotlib
  from pyclustering.cluster.tests.kmedians_templates import KmediansTestTemplates
  from pyclustering.cluster.kmedians import kmedians
  from pyclustering.samples.definitions import SIMPLE_SAMPLES
  from pyclustering.utils import read_sample
  from pyclustering.utils.metric import type_metric, distance_metric
label_desc: Use image node_id 7 for calling the KmediansUnitTest obj's underlying member method code with example usage: obj.testClusterAllocationSampleSimple1UserDefined() without return types