docstr: Extract variables from `v_fn` and use it as inputs for `fn`.
  
  Use `v_fn` to extract the variables and use the extracted
  variables as inputs to the call function fn of the module.
docstr_tok: ["Extract","variables","from","`","v_fn","`","and","use","it","as","inputs","for","`","fn","`",".","Use","`","v_fn","`","to","extract","the","variables","and","use","the","extracted","variables","as","inputs","to","the","call","function","fn","of","the","module","."]
code: def _fn_with_var_arg(
      self, fn, v_fn, /, keychain_mappings, orig_key_chain
  ):
      """Extract variables from `v_fn` and use it as inputs for `fn`.
  
      Use `v_fn` to extract the variables and use the extracted
      variables as inputs to the call function fn of the module.
      """
      _fn_with_var_arg_wrapper = functools.partial(
          self._fn_with_var_arg_wrapper,
          fn=fn,
          v_fn=v_fn,
          keychain_mappings=keychain_mappings,
          orig_key_chain=orig_key_chain,
      )
      _fn_with_var_arg_wrapper.wrapped = True
      return _fn_with_var_arg_wrapper
  
file_path: ivy/ivy/stateful/helpers.py
imports: import functools
  import logging
  import ivy
  from ivy.data_classes.container import Container
  from ivy.func_wrapper import _get_first_array
label_desc: Use image node_id 12 for calling the ModuleHelpers obj's underlying member method code with example usage: obj._fn_with_var_arg(keychain_mappings, orig_key_chain) and returns: _fn_with_var_arg_wrapper