code: def test_submitting_many_tasks(ray_start_sharded):
      @ray.remote
      def f(x):
          return 1
  
      def g(n):
          x = 1
          for i in range(n):
              x = f.remote(x)
          return x
  
      ray.get([g(100) for _ in range(100)])
      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 2 for calling a global function with example usage: test_submitting_many_tasks(ray_start_sharded) and returns: int, x