code: def argnums_unpack(all_vjp_builder):
      # A generic autograd helper function.  Takes a function that
      # builds vjps for all arguments, and wraps it to return only required vjps.
      def build_selected_vjps(argnums, ans, combined_args, kwargs):
          vjp_func = all_vjp_builder(ans, *combined_args, **kwargs)
  
          def chosen_vjps(g):  # Returns whichever vjps were asked for.
              all_vjps = vjp_func(g)
              return [all_vjps[argnum] for argnum in argnums]
  
          return chosen_vjps
  
      return build_selected_vjps
  
file_path: autograd/autograd/scipy/integrate.py
imports: from __future__ import absolute_import
  from builtins import range
  import scipy.integrate
  import autograd.numpy
  from autograd.extend import primitive, defvjp_argnums
  from autograd import make_vjp
  from autograd.misc import flatten
  from autograd.builtins import tuple
label_desc: Use image node_id 2 for calling a global function with example usage: argnums_unpack(all_vjp_builder) and returns: build_selected_vjps, chosen_vjps, unknown