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