class_docstr: Unit tests for the cluster_wrapper module.
docstr: Verifies that ClusterWeights cannot be initialized with a decimal value provided for the number of clusters.
docstr_tok: ["Verifies","that","ClusterWeights","can","not","be","initialized","with","a","decimal","value","provided","for","the","number","of","clusters","."]
code: def testCannotBeInitializedWithFloatNumberOfClusters(self):
      """Verifies that ClusterWeights cannot be initialized with a decimal value provided for the number of clusters."""
      with self.assertRaises(ValueError):
          cluster_wrapper.ClusterWeights(
              layers.Dense(10),
              number_of_clusters=13.4,
          )
  
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 5 for calling the ClusterWeightsTest obj's underlying member method code with example usage: obj.testCannotBeInitializedWithFloatNumberOfClusters() without return types