class_docstr: Unit tests for the ClusteringRegistry class.
class_docstr_tok: ["Unit","tests","for","the","ClusteringRegistry","class","."]
docstr: Verifies that make_clusterable() raises an exception.
  
  When invoked with a built-in RNN layer that contains a non-clusterable
  custom RNN cell.
docstr_tok: ["Verifies","that","make_clusterable","(",")","raises","an","exception",".","When","invoked","with","a","built-in","RNN","layer","that","contains","a","non-clusterable","custom","RNN","cell","."]
code: def testMakeClusterableRaisesErrorOnRNNLayersUnsupportedCell(self):
      """Verifies that make_clusterable() raises an exception.
  
      When invoked with a built-in RNN layer that contains a non-clusterable
      custom RNN cell.
      """
      cell1 = layers.LSTMCell(10)
      cell2 = ClusterRegistryTest.MinimalRNNCell(5)
      layer = layers.RNN([cell1, cell2])
      layer.build(input_shape=(10, 1))
  
      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 20 for calling the ClusterRegistryTest obj's underlying member method code with example usage: obj.testMakeClusterableRaisesErrorOnRNNLayersUnsupportedCell() without return types