code: def test_recursion(shutdown_only):
      ray.init(num_cpus=1)
  
      @ray.remote
      def summer(n):
          if n == 0:
              return 0
          return n + ray.get(summer.remote(n - 1))
  
      assert ray.get(summer.remote(10)) == sum(range(11))
  
file_path: ray/python/ray/tests/test_worker_capping.py
imports: import asyncio
  import os
  import pytest
  import sys
  import tempfile
  import time
  import ray
  from ray._private.test_utils import Semaphore
label_desc: Use image node_id 2 for calling a global function with example usage: test_recursion(shutdown_only) and returns: unknown, int