docstr: Return an iterator over the layers with outbound connections into the layer
docstr_tok: ["Return","an","iterator","over","the","layers","with","outbound","connections","into","the","layer"]
code: def predecessors(self, layer):
      """Return an iterator over the layers with outbound connections into the layer"""
      if isinstance(layer, Layer):
          layer = id(layer)
      for node_id in self.__graph.predecessors(layer):
          yield self.__layers_by_id[node_id]
  
file_path: OMLT/src/omlt/neuralnet/network_definition.py
imports: import networkx
  from omlt.neuralnet.layer import Layer
label_desc: Use image node_id 13 for calling the NetworkDefinition obj's underlying member method code with example usage: obj.predecessors(layer) without return types