code: def task_with_dynamic_returns_good(n):
      for i in range(n):
          yield np.zeros(i * 1024 * 1024)
  
file_path: ray/doc/source/ray-core/doc_code/anti_pattern_return_ray_put.py
imports: import ray
  import numpy
label_desc: Use image node_id 9 for calling a global function with example usage: task_with_dynamic_returns_good(n) without return types