class_docstr: Unit tests for the cluster_wrapper module.
docstr: Verifies that ClusterWeights cannot be initialized with a non-clusterable custom layer.
docstr_tok: ["Verifies","that","ClusterWeights","can","not","be","initialized","with","a","non-clusterable","custom","layer","."]
code: def testCannotBeInitializedWithNonClusterableLayer(self):
      """Verifies that ClusterWeights cannot be initialized with a non-clusterable custom layer."""
      with self.assertRaises(ValueError):
          cluster_wrapper.ClusterWeights(
              NonClusterableLayer(10),
              number_of_clusters=13,
          )
  
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 2 for calling the ClusterWeightsTest obj's underlying member method code with example usage: obj.testCannotBeInitializedWithNonClusterableLayer() without return types