code: def main():
      for meth, fn in [
          (
              "sequential",
              functools.partial(download_urls_sequential, URLS),
          ),
          (
              "threads",
              functools.partial(
                  download_urls_with_executor,
                  ThreadPoolExecutor(10),
                  URLS,
              ),
          ),
          (
              "processes",
              functools.partial(
                  download_urls_with_executor,
                  ProcessPoolExecutor(10),
                  URLS,
              ),
          ),
          (
              "mpi4py",
              functools.partial(
                  download_urls_with_executor, MPIPoolExecutor(10), URLS
              ),
          ),
      ]:
          sys.stdout.write("%s: " % meth.ljust(11))
          sys.stdout.flush()
          start = time.time()
          url_map = fn()
          elapsed = time.time() - start
          sys.stdout.write(
              "%5.2f seconds (%2d of %d downloaded)\n"
              % (elapsed, len(url_map), len(URLS))
          )
          sys.stdout.flush()
  
imports: import sys
  import time
  import functools
  from mpi4py.futures import MPIPoolExecutor, as_completed
label_desc: Use image node_id 4 for calling a global function with example usage: main() without return types