code: def ray_start_8_cpus():
      address_info = ray.init(num_cpus=8)
      yield address_info
      # The code after the yield will run as teardown code.
      ray.shutdown()
  
imports: import os
  from ray import train
  from ray.train import Checkpoint, FailureConfig, RunConfig, ScalingConfig
  from ray.air.constants import TRAIN_DATASET_KEY
  from ray.tune.tune_config import TuneConfig
  from ray.tune.tuner import Tuner
  from ray.train.data_parallel_trainer import DataParallelTrainer
  from ray.train.xgboost import XGBoostTrainer
  from sklearn.datasets import load_breast_cancer
  import pandas
  import pytest
  import ray
  import json
  from tempfile import TemporaryDirectory
  from ray import tune
  from ray.tune.schedulers.resource_changing_scheduler import DistributeResources, ResourceChangingScheduler
  from ray.tune.schedulers.async_hyperband import ASHAScheduler
label_desc: Use image node_id 1 for calling a global function with example usage: ray_start_8_cpus() without return types