code: def _find_arg(sig, arg_name, default_position):
      params = list(sig.parameters)
  
      # Check for default name in input args
      if arg_name in sig.parameters:
          return arg_name, params.index(arg_name)
      # Otherwise use argument in list by position
      elif arg_name is ...:
          index = int(_has_self(sig)) + default_position
          return params[index], index
      else:
          raise ValueError(f"Unable to find parameter '{arg_name}'.")
  
imports: import contextlib
  import functools
  import inspect
  import typing
  import warnings
  from cuml.internals import input_utils
  from cuml.internals.api_context_managers import BaseReturnAnyCM
  from cuml.internals.api_context_managers import BaseReturnArrayCM
  from cuml.internals.api_context_managers import BaseReturnGenericCM
  from cuml.internals.api_context_managers import BaseReturnSparseArrayCM
  from cuml.internals.api_context_managers import InternalAPIContextBase
  from cuml.internals.api_context_managers import ReturnAnyCM
  from cuml.internals.api_context_managers import ReturnArrayCM
  from cuml.internals.api_context_managers import ReturnGenericCM
  from cuml.internals.api_context_managers import ReturnSparseArrayCM
  from cuml.internals.api_context_managers import set_api_output_dtype
  from cuml.internals.api_context_managers import set_api_output_type
  from cuml.internals.constants import CUML_WRAPPED_FLAG
  from cuml.internals.global_settings import GlobalSettings
  from cuml.internals.memory_utils import using_output_type
  from cuml.internals.type_utils import _DecoratorType, wraps_typed
  from cuml.internals import logger
label_desc: Use image node_id 3 for calling a global function with example usage: _find_arg(sig, arg_name, default_position) and returns: arg_name,  params, params,  index