code: def testClusterAllocationSampleSimple1UserDefinedNumPyByCore(self):
      data = numpy.array(read_sample(SIMPLE_SAMPLES.SAMPLE_SIMPLE1))
      centers = numpy.array([[3.7, 5.5], [6.7, 7.5]])
      metric = distance_metric(
          type_metric.USER_DEFINED,
          func=distance_metric(type_metric.EUCLIDEAN),
      )
      KmeansTestTemplates.templateLengthProcessData(
          data, centers, [5, 5], True, metric=metric
      )
  
imports: import unittest
  import numpy
  import matplotlib
  from pyclustering.cluster.tests.kmeans_templates import KmeansTestTemplates
  from pyclustering.cluster.kmeans import kmeans
  from pyclustering.samples.definitions import SIMPLE_SAMPLES
  from pyclustering.core.tests import remove_library
  from pyclustering.utils import read_sample
  from pyclustering.utils.metric import distance_metric, type_metric
label_desc: Use image node_id 10 for calling the KmeansIntegrationTest obj's underlying member method code with example usage: obj.testClusterAllocationSampleSimple1UserDefinedNumPyByCore() without return types