code: def ray_start_2_cpus():
      address_info = ray.init(num_cpus=2)
      yield address_info
      # The code after the yield will run as teardown code.
      ray.shutdown()
  
file_path: ray/python/ray/air/tests/test_tracebacks.py
imports: import pytest
  import ray
  from ray.train import ScalingConfig
  from ray.air._internal.util import StartTraceback, skip_exceptions
  from ray.train.data_parallel_trainer import DataParallelTrainer
  from ray.tune import Tuner
label_desc: Use image node_id 1 for calling a global function with example usage: ray_start_2_cpus() without return types