code: def dropout_locations(incoming, *args, **kwargs):
      """
      Convenience function to drop full locations of feature maps.
  
      Adds a :class:`DropoutLayer` that sets feature map locations (i.e., pixels
      or voxels) to zero, across all channels, with probability p.
  
      Parameters
      ----------
      incoming : a :class:`Layer` instance or a tuple
          the layer feeding into this layer, or the expected input shape
      *args, **kwargs
          Any additional arguments and keyword arguments are passed on to the
          :class:`DropoutLayer` constructor, except for `shared_axes`.
  
      Returns
      -------
      layer : :class:`DropoutLayer` instance
          The dropout layer with `shared_axes` set to drop locations.
      """
      kwargs["shared_axes"] = (1,)
      return DropoutLayer(incoming, *args, **kwargs)
  
file_path: Lasagne/lasagne/layers/noise.py
imports: import theano
  import theano.tensor
  from .base import Layer
  from ..random import get_rng
  from theano.sandbox.rng_mrg import MRG_RandomStreams
label_desc: Use image node_id 2 for calling a global function with example usage: dropout_locations(incoming) and returns: DropoutLayer