code: def wrap_frontend_function_args(argument):
      """Wrap frontend function arguments to return native arrays."""
      # TODO pass as an argument and do not rely on global state
      with BackendHandler.update_backend(
          t_globals.CURRENT_FRONTEND_STR
      ) as ivy_frontend:
          if ivy_frontend.nested_any(
              argument,
              lambda x: hasattr(x, "__module__")
              and x.__module__.startswith("ivy.functional.frontends"),
          ):
              return ivy_frontend.output_to_native_arrays(
                  ivy_frontend.frontend_outputs_to_ivy_arrays(argument)
              )
      if ivy_frontend.nested_any(
          argument, lambda x: isinstance(x, ivy_frontend.Shape)
      ):
          return argument.shape
      return argument
  
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 22 for calling a global function with example usage: wrap_frontend_function_args(argument) and returns: argument, argument, ivy_frontend