code: def flatten_layers(self):
      lf = []
      for l in self.layers:
          if isinstance(l, LayerContainer):
              lf += l.flatten_layers
          else:
              lf.append(l)
      return lf
  
file_path: neon/neon/benchmark/benchmark.py
imports: from functools import wraps
  from neon import NervanaObject
  from collections import OrderedDict
  from neon import __version__
  from neon import logger
  from neon.layers.container import LayerContainer
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: flatten_layers() and returns: lf