code: def test_get_world_size(
      ray_start_distributed_2_nodes, world_size, backend
  ):
      actors, _ = create_collective_workers(world_size, backend=backend)
      actor0_world_size = ray.get(actors[0].report_world_size.remote())
      actor1_world_size = ray.get(actors[1].report_world_size.remote())
      assert actor0_world_size == actor1_world_size == world_size
  
file_path: ray/python/ray/util/collective/tests/distributed_cpu_tests/test_distributed_basic_apis.py
imports: import pytest
  import ray
  from random import shuffle
  from ray.util.collective.types import Backend
  from ray.util.collective.tests.cpu_util import Worker, create_collective_workers
label_desc: Use image node_id 4 for calling a global function with example usage: test_get_world_size(ray_start_distributed_2_nodes, world_size, backend) without return types