class_docstr: Matches patterns to apply transforms in a tf.keras model graph.
docstr: Get the names of a layer's input layers.
code: def _get_input_layer_names(self, layer):
      """Get the names of a layer's input layers."""
      if self._is_functional_model(self.model):
          inbound_nodes = layer["inbound_nodes"]
          return [
              connection_info[0] for connection_info in inbound_nodes[0]
          ]
      else:  # Sequential model.
          layers = self._config["layers"]
          i = layers.index(layer)
          if i == 0:
              # First layer has no inputs.
              return []
          else:
              return [layers[i - 1]["config"]["name"]]
  
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 15 for calling the ModelTransformer obj's underlying member method code with example usage: obj._get_input_layer_names(layer) and returns: unknown, list, list