code: def solve(allow_singular):
      if allow_singular:
          return lambda A, x: np.dot(np.linalg.pinv(A), x)
      else:
          return np.linalg.solve
  
file_path: autograd/autograd/scipy/stats/multivariate_normal.py
imports: from __future__ import absolute_import
  import scipy.stats
  import autograd.numpy
  from autograd.numpy.numpy_vjps import unbroadcast_f
  from autograd.extend import primitive, defvjp
label_desc: Use image node_id 3 for calling a global function with example usage: solve(allow_singular) and returns: function, np