code: def shared_empty(dim=2, dtype=None):
      """Creates empty Theano shared variable.
  
      Shortcut to create an empty Theano shared variable with
      the specified number of dimensions.
  
      Parameters
      ----------
      dim : int, optional
          The number of dimensions for the empty variable, defaults to 2.
      dtype : a numpy data-type, optional
          The desired dtype for the variable. Defaults to the Theano
          ``floatX`` dtype.
  
      Returns
      -------
      Theano shared variable
          An empty Theano shared variable of dtype ``dtype`` with
          `dim` dimensions.
      """
      if dtype is None:
          dtype = theano.config.floatX
  
      shp = tuple([1] * dim)
      return theano.shared(np.zeros(shp, dtype=dtype))
  
file_path: Lasagne/lasagne/utils.py
imports: import numbers
  import numpy
  import theano
  import theano.tensor
label_desc: Use image node_id 2 for calling a global function with example usage: shared_empty(dim, dtype) and returns: theano