code: def ray_start_4_cpus(request):
      if request.param:
          assert not ray.util.client.ray.is_connected()
          with ray_start_client_server(ray_init_kwargs={"num_cpus": 3}):
              assert ray.util.client.ray.is_connected()
              yield
      else:
          ray.init(num_cpus=4)
          yield
          ray.shutdown()
  
file_path: ray/python/ray/tests/horovod/test_horovod.py
imports: import pytest
  import torch
  import ray
  from ray.util.client.ray_client_helpers import ray_start_client_server
label_desc: Use image node_id 1 for calling a global function with example usage: ray_start_4_cpus(request) without return types