class_docstr: Matches patterns to apply transforms in a tf.keras model graph.
docstr: Extracts the weight name by removing layer from TF variable name.
  
  For example, returns 'kernel:0' for 'dense_2/kernel:0'.
  
  Args:
    name: TensorFlow variable name.
  
  Returns:
    Extracted weight name.
code: def _weight_name(self, name):
      """Extracts the weight name by removing layer from TF variable name.
  
      For example, returns 'kernel:0' for 'dense_2/kernel:0'.
  
      Args:
        name: TensorFlow variable name.
  
      Returns:
        Extracted weight name.
      """
      return name.split("/")[-1]
  
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 24 for calling the ModelTransformer obj's underlying member method code with example usage: obj._weight_name(name) and returns: name