docstr: PrunePreserveQuantize supported layer, must be supported by both Prune and Quantize.
docstr_tok: ["PrunePreserveQuantize","supported","layer",",","must","be","supported","by","both","Prune","and","Quantize","."]
code: def testSupports_Prune_Default8bitQuantize_KerasLayers(self):
      """PrunePreserveQuantize supported layer, must be supported by both Prune and Quantize."""
      pqat_layers_config_map = (
          self.prune_preserve_quantize_registry._LAYERS_CONFIG_MAP
      )
      for pqat_support_layer in pqat_layers_config_map:
          if (
              pqat_layers_config_map[pqat_support_layer].weight_attrs
              and pqat_layers_config_map[
                  pqat_support_layer
              ].quantize_config_attrs
          ):
              self.assertIn(
                  pqat_support_layer,
                  self.prune_registry._LAYERS_WEIGHTS_MAP,
                  msg="Prune doesn't support {}".format(
                      pqat_support_layer
                  ),
              )
              self.assertIn(
                  pqat_support_layer,
                  self.default_8bit_quantize_registry._layer_quantize_map,
                  msg="Default 8bit QAT doesn't support {}".format(
                      pqat_support_layer
                  ),
              )
  
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 PrunePreserveDefault8bitQuantizeRegistryTest obj's underlying member method code with example usage: obj.testSupports_Prune_Default8bitQuantize_KerasLayers() without return types