code: def wrap_function_arguments(fn, *args, **kwargs):
      serialized_fn = cloudpickle.dumps(fn)
      serialized_args: List[Any] = []
      for a in args:
          serialized_args.append(cloudpickle.dumps(a))
      serialized_kwargs: Dict[str, Any] = {}
      for k, v in kwargs.items():
          serialized_kwargs[k] = cloudpickle.dumps(v)
      return partial(
          deserialize_and_run,
          serialized_fn,
          serialized_args,
          serialized_kwargs,
      )
  
imports: from functools import partial
  from typing import Any, Callable, Dict, List
  import cloudpickle
label_desc: Use image node_id 2 for calling a global function with example usage: wrap_function_arguments(fn) and returns: partial