code: def test_broadcast_invalid_rank(
      ray_start_distributed_multigpu_2_nodes_4_gpus,
      src_rank,
      src_gpu_index,
  ):
      world_size = 2
      actors, _ = create_collective_multigpu_workers(world_size)
      with pytest.raises(ValueError):
          _ = ray.get(
              [
                  a.do_broadcast_multigpu.remote(
                      src_rank=src_rank, src_gpu_index=src_gpu_index
                  )
                  for a in actors
              ]
          )
  
file_path: ray/python/ray/util/collective/tests/distributed_multigpu_tests/test_distributed_multigpu_broadcast.py
imports: import pytest
  import cupy
  import ray
  from ray.util.collective.tests.util import create_collective_multigpu_workers
label_desc: Use image node_id 4 for calling a global function with example usage: test_broadcast_invalid_rank(ray_start_distributed_multigpu_2_nodes_4_gpus, src_rank, src_gpu_index) without return types