code: def test_getting_many_objects(ray_start_sharded):
      @ray.remote
      def f():
          return 1
  
      n = 10**4  # TODO(pcm): replace by 10 ** 5 once this is faster.
      lst = ray.get([f.remote() for _ in range(n)])
      assert lst == n * [1]
  
      assert ray._private.services.remaining_processes_alive()
  
file_path: ray/python/ray/tests/test_stress_sharded.py
imports: import numpy
  import pytest
  import ray
label_desc: Use image node_id 5 for calling a global function with example usage: test_getting_many_objects(ray_start_sharded) and returns: int