class_docstr: A layer that flattens its input. The leading ``outdim-1`` dimensions of
  the output will have the same shape as the input. The remaining dimensions
  are collapsed into the last dimension.
  
  Parameters
  ----------
  incoming : a :class:`Layer` instance or a tuple
      The layer feeding into this layer, or the expected input shape.
  outdim : int
      The number of dimensions in the output.
  
  See Also
  --------
  flatten  : Shortcut
code: def __init__(self, incoming, outdim=2, **kwargs):
      super(FlattenLayer, self).__init__(incoming, **kwargs)
      self.outdim = outdim
  
      if outdim < 1:
          raise ValueError("Dim must be >0, was %i", outdim)
  
imports: import numpy
  import theano.tensor
  from ..theano_extensions import padding
  from ..utils import int_types
  from .base import Layer
label_desc: Use image node_id 1 to create a new FlattenLayer object from inherited base classes: Layer with example: obj = FlattenLayer(incoming, outdim)