code: def ray_start_4_cpus():
      address_info = ray.init(num_cpus=4)
      yield address_info
      # The code after the yield will run as teardown code.
      ray.shutdown()
  
file_path: ray/python/ray/train/tests/test_result.py
imports: import pyarrow
  import pytest
  import ray
  from ray import train
  from ray.air._internal.uri_utils import URI
  from ray.air.constants import EXPR_RESULT_FILE
  from ray.train import CheckpointConfig, Result, RunConfig, ScalingConfig
  from ray.train.base_trainer import TrainingFailedError
  from ray.train.tests.util import create_dict_checkpoint, load_dict_checkpoint
  from ray.train.torch import TorchTrainer
  from ray.tune import TuneConfig, Tuner
label_desc: Use image node_id 1 for calling a global function with example usage: ray_start_4_cpus() without return types