class_docstr: Slices the input at a specific axis and at specific indices.
  
  Parameters
  ----------
  incoming : a :class:`Layer` instance or a tuple
      The layer feeding into this layer, or the expected input shape
  
  indices : int or slice instance
      If an ``int``, selects a single element from the given axis, dropping
      the axis. If a slice, selects all elements in the given range, keeping
      the axis.
  
  axis : int
      Specifies the axis from which the indices are selected.
  
  Examples
  --------
  >>> from lasagne.layers import SliceLayer, InputLayer
  >>> l_in = InputLayer((2, 3, 4))
  >>> SliceLayer(l_in, indices=0, axis=1).output_shape
  ... # equals input[:, 0]
  (2, 4)
  >>> SliceLayer(l_in, indices=slice(0, 1), axis=1).output_shape
  ... # equals input[:, 0:1]
  (2, 1, 4)
  >>> SliceLayer(l_in, indices=slice(-2, None), axis=-1).output_shape
  ... # equals input[..., -2:]
  (2, 3, 2)
code: def __init__(self, incoming, indices, axis=-1, **kwargs):
      super(SliceLayer, self).__init__(incoming, **kwargs)
      self.slice = indices
      self.axis = axis
  
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 SliceLayer object from inherited base classes: Layer with example: obj = SliceLayer(incoming, indices, axis)