code: def generate_continuation(depth=10):
      @ray.remote(num_cpus=0.01)
      def inc_recur(n, k):
          if k <= 0:
              return n
          return workflow.continuation(inc_recur.bind(n + 1, k - 1))
  
      return inc_recur.bind(0, depth)
  
file_path: ray/python/ray/workflow/tests/test_complex_workflow.py
imports: import pytest
  import random
  import ray
  from ray import workflow
label_desc: Use image node_id 2 for calling a global function with example usage: generate_continuation(depth) and returns: inc_recur, workflow, n