class_docstr: Unit tests for the ClusteringRegistry class.
class_docstr_tok: ["Unit","tests","for","the","ClusteringRegistry","class","."]
docstr: A built-in RNN layer with custom clusterable RNN cell is not clusterable.
docstr_tok: ["A","built-in","RNN","layer","with","custom","clusterable","RNN","cell","is","not","clusterable","."]
code: def testMakeClusterableDoesNotWorksOnKerasRNNLayerWithClusterableCell(
      self,
  ):
      """A built-in RNN layer with custom clusterable RNN cell is not clusterable."""
      cell1 = layers.LSTMCell(10)
      cell2 = ClusterRegistryTest.MinimalRNNCellClusterable(5)
      layer = layers.RNN([cell1, cell2])
  
      with self.assertRaises(AttributeError):
          layer.get_clusterable_weights()
  
      with self.assertRaises(ValueError):
          ClusterRegistry.make_clusterable(layer)
  
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 19 for calling the ClusterRegistryTest obj's underlying member method code with example usage: obj.testMakeClusterableDoesNotWorksOnKerasRNNLayerWithClusterableCell() without return types