class_docstr: Unit tests for the clustering_centroids module.
class_docstr_tok: ["Unit","tests","for","the","clustering_centroids","module","."]
docstr: Verifies that the centroid initializer factory method raises an exception when invoked with an unsupported initialization method.
docstr_tok: ["Verifies","that","the","centroid","initializer","factory","method","raises","an","exception","when","invoked","with","an","unsupported","initialization","method","."]
code: def testThrowsValueErrorForNonExistingInit(self):
      """Verifies that the centroid initializer factory method raises an exception when invoked with an unsupported initialization method."""
      with self.assertRaises(ValueError):
          self.factory.get_centroid_initializer("DEADBEEF")
  
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 5 for calling the ClusteringCentroidsTest obj's underlying member method code with example usage: obj.testThrowsValueErrorForNonExistingInit() without return types