code: def ray_start_6_cpus_4_gpus():
      address_info = ray.init(num_cpus=6, num_gpus=4)
      yield address_info
      # The code after the yield will run as teardown code.
      ray.shutdown()
  
file_path: ray/python/ray/train/tests/test_torch_lightning_train.py
imports: import os
  import numpy
  import pytest
  import ray
  from ray.train import ScalingConfig
  from ray.train.lightning import RayDDPStrategy, RayDeepSpeedStrategy, RayFSDPStrategy, RayLightningEnvironment, RayTrainReportCallback
  from ray.train.lightning._lightning_utils import import_lightning
  from ray.train.tests.lightning_test_utils import DummyDataModule, LinearModule
  from ray.train.torch import TorchTrainer
label_desc: Use image node_id 2 for calling a global function with example usage: ray_start_6_cpus_4_gpus() without return types