class_docstr: Matches patterns to apply transforms in a tf.keras model graph.
code: def _inbound_node_generator(self, layer):
      for inbound_node in layer["inbound_nodes"]:
          if (
              isinstance(inbound_node, list)
              and len(inbound_node) > 0
              and isinstance(inbound_node[0], str)
          ):
              # TODO(tfmot): The case for the SlicingOpLambda.
              yield [inbound_node]
          else:
              yield inbound_node
  
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 4 for calling the ModelTransformer obj's underlying member method code with example usage: obj._inbound_node_generator(layer) without return types