code: def stage1(smoke=False):
      num_tasks = 100000
  
      if smoke:
          num_tasks //= 25
  
      stage_1_iterations = []
      start_time = time.time()
      logger.info("Submitting many tasks.")
      for i in range(10):
          iteration_start = time.time()
          logger.info("Iteration %s", i)
          ray.get([f.remote(0) for _ in range(num_tasks)])
          stage_1_iterations.append(time.time() - iteration_start)
  
      return time.time() - start_time, stage_1_iterations
  
file_path: ray/release/nightly_tests/stress_tests/test_many_tasks.py
imports: import argparse
  import json
  import logging
  import os
  import time
  from collections import defaultdict
  import numpy
  import ray
label_desc: Use image node_id 3 for calling a global function with example usage: stage1(smoke) and returns: unknown,  stage_1_iterations