class_docstr: Unit tests for the cluster_wrapper module.
docstr: Verifies that ClusterWeights cannot be initialized with less than two clusters.
docstr_tok: ["Verifies","that","ClusterWeights","can","not","be","initialized","with","less","than","two","clusters","."]
code: def testCannotBeInitializedWithNumberOfClustersLessThanTwo(
      self, number_of_clusters
  ):
      """Verifies that ClusterWeights cannot be initialized with less than two clusters."""
      with self.assertRaises(ValueError):
          cluster_wrapper.ClusterWeights(
              layers.Dense(10),
              number_of_clusters=number_of_clusters,
          )
  
imports: import itertools
  import os
  import tempfile
  from absl.testing import parameterized
  import tensorflow
  from tensorflow_model_optimization.python.core.clustering.keras import cluster
  from tensorflow_model_optimization.python.core.clustering.keras import cluster_config
  from tensorflow_model_optimization.python.core.clustering.keras import cluster_wrapper
  from tensorflow_model_optimization.python.core.clustering.keras import clusterable_layer
label_desc: Use image node_id 6 for calling the ClusterWeightsTest obj's underlying member method code with example usage: obj.testCannotBeInitializedWithNumberOfClustersLessThanTwo(number_of_clusters) without return types