code: def _pickle_jobs(tmp_dir: str, **jobspec: Any) -> None:
      path = os.path.join(tmp_dir, JOB_SPEC_PICKLE)
      os.makedirs(os.path.dirname(path), exist_ok=True)
      with open(path, "wb") as f:
          cloudpickle.dump(jobspec, f)
      log.info(f"Pickle for jobs: {f.name}")
  
file_path: hydra/plugins/hydra_ray_launcher/hydra_plugins/hydra_ray_launcher/_core_aws.py
imports: import logging
  import os
  import tempfile
  from pathlib import Path
  from typing import Any, List, Sequence, Union
  import cloudpickle
  from hydra.core.singleton import Singleton
  from hydra.core.utils import JobReturn, configure_log, filter_overrides, setup_globals
  from omegaconf import Node, OmegaConf, open_dict, read_write
  from ._launcher_util import JOB_RETURN_PICKLE, JOB_SPEC_PICKLE, ray_tmp_dir, rsync
  from .ray_aws_launcher import RayAWSLauncher
label_desc: Use image node_id 2 for calling a global function with example usage: _pickle_jobs(tmp_dir) without return types