class_docstr: Matches patterns to apply transforms in a tf.keras model graph.
code: def _remove_layers(self, layers_to_remove, layers_to_remove_names):
      # Remove layers.
      for layer_to_remove in layers_to_remove:
          self._config["layers"].remove(layer_to_remove)
      # Remove entry from weight and metadata maps,
      # now that layer has been removed.
      for layer_name in layers_to_remove_names:
          self._layer_weights_map.pop(layer_name, None)
          self._layer_names_and_weights_map.pop(layer_name, None)
          self._layer_metadata_map.pop(layer_name, None)
  
imports: import collections
  import copy
  import re
  import tensorflow
  from tensorflow_model_optimization.python.core.quantization.keras.graph_transformations import transforms
label_desc: Use image node_id 20 for calling the ModelTransformer obj's underlying member method code with example usage: obj._remove_layers(layers_to_remove, layers_to_remove_names) without return types