code: def _dump_job_return(result: List[JobReturn], tmp_dir: str) -> None:
      path = os.path.join(tmp_dir, JOB_RETURN_PICKLE)
      os.makedirs(os.path.dirname(path), exist_ok=True)
      with open(path, "wb") as f:
          cloudpickle.dump(result, f)
      log.info(f"Pickle for job returns: {f.name}")
  
file_path: hydra/plugins/hydra_ray_launcher/hydra_plugins/hydra_ray_launcher/_remote_invoke.py
imports: import logging
  import os
  import sys
  from pathlib import Path
  from typing import List
  from urllib.request import urlopen
  import cloudpickle
  import ray
  from hydra.core.hydra_config import HydraConfig
  from hydra.core.singleton import Singleton
  from hydra.core.utils import JobReturn, setup_globals
  from omegaconf import open_dict
  from ._launcher_util import JOB_RETURN_PICKLE, JOB_SPEC_PICKLE, launch_job_on_ray, start_ray
label_desc: Use image node_id 2 for calling a global function with example usage: _dump_job_return(result, tmp_dir) without return types