class_docstr: Matches patterns to apply transforms in a tf.keras model graph.
docstr: Sets the values of weights in a Keras layer.
code: def _set_layer_weights(self, layer, weights_map):
      """Sets the values of weights in a Keras layer."""
  
      weight_value_tuples = []
      for weight_tensor in layer.weights:
          weight_name = self._weight_name(weight_tensor.name)
          if weight_name in weights_map:
              weight_value_tuples.append(
                  (weight_tensor, weights_map[weight_name])
              )
  
      K.batch_set_value(weight_value_tuples)
  
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 27 for calling the ModelTransformer obj's underlying member method code with example usage: obj._set_layer_weights(layer, weights_map) without return types