class_docstr: Unit tests for the cluster_wrapper module.
docstr: Verifies that ClusterWeights cannot be initialized with an object that is not an instance of keras.layers.Layer.
docstr_tok: ["Verifies","that","ClusterWeights","can","not","be","initialized","with","an","object","that","is","not","an","instance","of","keras.layers.Layer","."]
code: def testCannotBeInitializedWithNonLayerObject(self):
      """Verifies that ClusterWeights cannot be initialized with an object that is not an instance of keras.layers.Layer."""
      with self.assertRaises(ValueError):
          cluster_wrapper.ClusterWeights(
              {"this": "is not a Layer instance"},
              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 1 for calling the ClusterWeightsTest obj's underlying member method code with example usage: obj.testCannotBeInitializedWithNonLayerObject() without return types