code: def gen_tasks(time_scale=0.1):
      @ray.remote
      def f(n):
          time.sleep(n * time_scale)
          return n, np.zeros(1024 * 1024, dtype=np.uint8)
  
      return [f.remote(i) for i in range(5)]
  
imports: import asyncio
  import concurrent.futures
  import sys
  import time
  import numpy
  import pytest
  import ray
  from ray._private.async_compat import is_async_func
  from ray._private.test_utils import wait_for_condition
  from ray._private.utils import get_or_create_event_loop, run_background_task, background_tasks
label_desc: Use image node_id 2 for calling a global function with example usage: gen_tasks(time_scale) and returns: unknown, n,  np