code: def ray_start_2_cpus():
      address_info = ray.init(num_cpus=2, configure_logging=False)
      yield address_info
      # The code after the yield will run as teardown code.
      ray.shutdown()
  
file_path: ray/python/ray/tune/tests/test_util_file_transfer.py
imports: import io
  import tarfile
  import os
  import pytest
  import shutil
  import tempfile
  from ray.exceptions import RayTaskError
  from ray.tune.utils.file_transfer import _sync_dir_between_different_nodes, _sync_dir_on_same_node
  import ray.util
label_desc: Use image node_id 1 for calling a global function with example usage: ray_start_2_cpus() without return types