code: def testSupports_KerasLayer(self):
      # test registered layer
      self.assertTrue(
          self.prune_preserve_quantize_registry.supports(
              layers.Dense(10)
          )
      )
      self.assertTrue(
          self.prune_preserve_quantize_registry.supports(
              self.layer_conv2d
          )
      )
      # test layer without training weights
      self.assertTrue(
          self.prune_preserve_quantize_registry.supports(layers.ReLU())
      )
  
file_path: model-optimization/tensorflow_model_optimization/python/core/quantization/keras/collab_opts/prune_preserve/prune_preserve_quantize_registry_test.py
imports: import tensorflow
  from tensorflow_model_optimization.python.core.quantization.keras import quantize_config
  from tensorflow_model_optimization.python.core.quantization.keras.collab_opts.prune_preserve import prune_preserve_quantize_registry
  from tensorflow_model_optimization.python.core.quantization.keras.default_8bit import default_8bit_quantize_registry
  from tensorflow_model_optimization.python.core.sparsity.keras import prune_registry
label_desc: Use image node_id 2 for calling the PrunePreserveQuantizeRegistryTest obj's underlying member method code with example usage: obj.testSupports_KerasLayer() without return types