code: def _get_jac_one_arg_fn(grad_fn, xs, out_idx):
      nested_indices = iter(ivy.all_nested_indices(xs))
  
      def one_arg_fn(x):
          idx = next(nested_indices)
          new_xs = (
              ivy.set_nest_at_index(xs, idx, x, shallow=False)
              if idx
              else x
          )
          ret = grad_fn(new_xs)
          for i in out_idx:
              ret = ret[i]
          return ret
  
      return one_arg_fn
  
file_path: ivy/ivy/functional/backends/paddle/gradients.py
imports: from typing import Optional, Callable
  import paddle
  import ivy.functional.backends.paddle
  from itertools import chain
  import ivy
  from ivy.func_wrapper import with_unsupported_device_and_dtypes
  from .None import backend_version
  from ivy.functional.ivy.gradients import _get_required_float_variables, _get_y_and_ret_idxs, _get_native_y, _set_duplicates, _process_func_ret_and_grads
label_desc: Use image node_id 8 for calling a global function with example usage: _get_jac_one_arg_fn(grad_fn, xs, out_idx) and returns: one_arg_fn, ret