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