code: def create_args_kwargs(
      *,
      backend: str,
      args_np,
      arg_np_vals,
      args_idxs,
      kwargs_np,
      kwarg_np_vals,
      kwargs_idxs,
      input_dtypes,
      test_flags: Union[pf.FunctionTestFlags, pf.MethodTestFlags],
      on_device,
  ):
      """Create arguments and keyword-arguments for the function to test.
  
      Parameters
      ----------
      args_np
          A dictionary of arguments in Numpy.
      kwargs_np
          A dictionary of keyword-arguments in Numpy.
      input_dtypes
          data-types of the input arguments and keyword-arguments.
  
      Returns
      -------
      Backend specific arguments, keyword-arguments
      """
      # create args
      with BackendHandler.update_backend(backend) as ivy_backend:
          args = ivy_backend.copy_nest(args_np, to_mutable=False)
          ivy_backend.set_nest_at_indices(
              args,
              args_idxs,
              test_flags.apply_flags(
                  arg_np_vals,
                  input_dtypes,
                  0,
                  backend=backend,
                  on_device=on_device,
              ),
          )
  
          # create kwargs
          kwargs = ivy_backend.copy_nest(kwargs_np, to_mutable=False)
          ivy_backend.set_nest_at_indices(
              kwargs,
              kwargs_idxs,
              test_flags.apply_flags(
                  kwarg_np_vals,
                  input_dtypes,
                  len(arg_np_vals),
                  backend=backend,
                  on_device=on_device,
              ),
          )
      return args, kwargs
  
imports: import copy
  import time
  from typing import Union, List, Optional
  import numpy
  import types
  import importlib
  import inspect
  from collections import OrderedDict
  from .globals import mod_backend
  from .pipeline_helper import BackendHandler, BackendHandlerMode, get_frontend_config
  import ivy
  from ivy_tests.test_ivy.helpers.test_parameter_flags import FunctionTestFlags
  import ivy_tests.test_ivy.helpers.test_parameter_flags
  import ivy_tests.test_ivy.helpers.globals
  from ivy.functional.ivy.data_type import _get_function_list, _get_functions_from_string
  from ivy_tests.test_ivy.test_frontends import NativeClass
  from ivy_tests.test_ivy.helpers.structs import FrontendMethodData
  from ivy_tests.test_ivy.helpers.testing_helpers import _create_transpile_report
  from .assertions import value_test, assert_same_type, check_unsupported_dtype
label_desc: Use image node_id 20 for calling a global function with example usage: create_args_kwargs() and returns: args,  kwargs