code: def collect_shared_vars(expressions):
      """Returns all shared variables the given expression(s) depend on.
  
      Parameters
      ----------
      expressions : Theano expression or iterable of Theano expressions
          The expressions to collect shared variables from.
  
      Returns
      -------
      list of Theano shared variables
          All shared variables the given expression(s) depend on, in fixed order
          (as found by a left-recursive depth-first search). If some expressions
          are shared variables themselves, they are included in the result.
      """
      # wrap single expression in list
      if isinstance(expressions, theano.Variable):
          expressions = [expressions]
      # return list of all shared variables
      return [
          v
          for v in theano.gof.graph.inputs(reversed(expressions))
          if isinstance(v, theano.compile.SharedVariable)
      ]
  
file_path: Lasagne/lasagne/utils.py
imports: import numbers
  import numpy
  import theano
  import theano.tensor
label_desc: Use image node_id 4 for calling a global function with example usage: collect_shared_vars(expressions) and returns: unknown