class_docstr: Unit tests for the clustering_centroids module.
class_docstr_tok: ["Unit","tests","for","the","clustering_centroids","module","."]
code: def testKmeansPlusPlusClusterCentroidsWithPerChannelClustering(
      self, weights, number_of_clusters, centroids, data_format
  ):
      kmci = clustering_centroids.KmeansPlusPlusCentroidsInitialisation(
          np.array(weights, dtype="float32"),
          number_of_clusters,
          cluster_per_channel=True,
          data_format=data_format,
      )
      calc_centroids = K.batch_get_value(
          [kmci.get_cluster_centroids()]
      )[0]
      self.assertAllClose(centroids, calc_centroids)
  
imports: from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow_model_optimization.python.core.clustering.keras import cluster_config
  from tensorflow_model_optimization.python.core.clustering.keras import clustering_centroids
label_desc: Use image node_id 18 for calling the ClusteringCentroidsTest obj's underlying member method code with example usage: obj.testKmeansPlusPlusClusterCentroidsWithPerChannelClustering(weights, number_of_clusters, centroids, data_format) without return types