class_docstr: Unit tests for the ClusteringRegistry class.
class_docstr_tok: ["Unit","tests","for","the","ClusteringRegistry","class","."]
docstr: make_clusterable() makes a built-in clusterable layer clusterable.
docstr_tok: ["make_clusterable","(",")","makes","a","built-in","clusterable","layer","clusterable","."]
code: def testMakeClusterableWorksOnKerasClusterableLayer(self):
      """make_clusterable() makes a built-in clusterable layer clusterable."""
      layer = layers.Dense(10)
      with self.assertRaises(AttributeError):
          layer.get_clusterable_weights()
  
      ClusterRegistry.make_clusterable(layer)
      # Required since build method sets up the layer weights.
      keras.Sequential([layer]).build(input_shape=(10, 1))
  
      self.assertEqual(
          [("kernel", layer.kernel)], layer.get_clusterable_weights()
      )
  
imports: from absl.testing import parameterized
  import tensorflow
  from tensorflow_model_optimization.python.core.clustering.keras import clusterable_layer
  from tensorflow_model_optimization.python.core.clustering.keras import clustering_registry
  from tensorflow_model_optimization.python.core.clustering.keras.cluster_config import GradientAggregation
label_desc: Use image node_id 14 for calling the ClusterRegistryTest obj's underlying member method code with example usage: obj.testMakeClusterableWorksOnKerasClusterableLayer() without return types