code: def test_report_num_gpus(
      ray_start_distributed_multigpu_2_nodes_4_gpus,
  ):
      world_size = 2
      actors, results = create_collective_multigpu_workers(world_size)
      num_gpus = ray.get(
          [actor.report_num_gpus.remote() for actor in actors]
      )
      assert num_gpus == [2, 2]
  
file_path: ray/python/ray/util/collective/tests/distributed_multigpu_tests/test_distributed_multigpu_basic_apis.py
imports: import pytest
  import ray
  from random import shuffle
  from ray.util.collective.tests.util import create_collective_multigpu_workers
label_desc: Use image node_id 2 for calling a global function with example usage: test_report_num_gpus(ray_start_distributed_multigpu_2_nodes_4_gpus) without return types