code: def generate_chain(length=10):
      @ray.remote(num_cpus=0.01)
      def inc(n):
          return n + 1
  
      n = inc.bind(0)
      for _ in range(length):
          n = inc.bind(n)
      return n
  
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 1 for calling a global function with example usage: generate_chain(length) and returns: n, unknown