docstr: Return an iterator over all the layers
docstr_tok: ["Return","an","iterator","over","all","the","layers"]
code: def layers(self):
      """Return an iterator over all the layers"""
      for layer_id in nx.topological_sort(self.__graph):
          yield self.__layers_by_id[layer_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 12 for calling the NetworkDefinition obj's underlying member method code with example usage: obj.layers() without return types