code: def task_with_dynamic_returns_bad(n):
      return_value_refs = []
      for i in range(n):
          return_value_refs.append(ray.put(np.zeros(i * 1024 * 1024)))
      return return_value_refs
  
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 8 for calling a global function with example usage: task_with_dynamic_returns_bad(n) and returns: return_value_refs