code: def arg(arg_idx: int, preprocess: Callable):
      """
      Type utils apply to function arguments.
      Args:
          arg_idx (`int`):
              The index number of the applied argument.
          preprocess (`Callable`):
              The arg preprocess function.
      """
  
      def decorate(func):
          @wraps(func)
          def wrapper(*args, **kwargs):
              x = preprocess(args[arg_idx])
              new_args = args[:arg_idx] + (x,) + args[arg_idx + 1 :]
              return func(*new_args, **kwargs)
  
          return wrapper
  
      return decorate
  
imports: from functools import wraps
  from typing import Callable
label_desc: Use image node_id 1 for calling a global function with example usage: arg(arg_idx, preprocess) and returns: decorate, wrapper, func