code: def grad_solve(argnum, ans, a, b):
      updim = lambda x: x if x.ndim == a.ndim else x[..., None]
      if argnum == 0:
          return lambda g: -_dot(updim(solve(T(a), g)), T(updim(ans)))
      else:
          return lambda g: solve(T(a), g)
  
file_path: autograd/autograd/numpy/linalg.py
imports: from __future__ import absolute_import
  from functools import partial
  import numpy.linalg
  from .numpy_wrapper import wrap_namespace
  from .None import numpy_wrapper
  from autograd.extend import defvjp, defjvp
label_desc: Use image node_id 6 for calling a global function with example usage: grad_solve(argnum, ans, a, b) and returns: function, function