code: def grad_named(fun, argname):
      """Takes gradients with respect to a named argument.
      Doesn't work on *args or **kwargs."""
      arg_index = _getargspec(fun).args.index(argname)
      return grad(fun, arg_index)
  
imports: from __future__ import absolute_import
  from functools import partial
  from collections import OrderedDict
  import warnings
  from .wrap_util import unary_to_nary
  from .builtins import tuple
  from .core import make_vjp, make_jvp
  from .extend import primitive, defvjp_argnum, vspace
  import autograd.numpy
label_desc: Use image node_id 6 for calling a global function with example usage: grad_named(fun, argname) and returns: grad