code: def compare(func):
      """Run func with both multiprocessing and fiber."""
      start_time = time.time()
      func(mp)
      end_time = time.time()
      duration1 = end_time - start_time
  
      doc = func.__doc__.strip() if func.__doc__ is not None else ""
      print("Compare result - {}\n{}".format(func.__name__, doc))
      print("multiprocessing duration: {}".format(duration1))
  
      start_time = time.time()
      func(fiber)
      end_time = time.time()
      duration2 = end_time - start_time
  
      print("fiber duration: {}".format(duration2))
  
      print(
          "fiber vs. multiprocessing: {:.2%}".format(
              duration2 / duration1
          )
      )
  
file_path: fiber/examples/bench_queue.py
imports: import sys
  import time
  import fiber
  import multiprocessing
  from threading import Thread
  from fiber import SimpleQueue
  from datetime import datetime
  import logging
  import time
  import random
label_desc: Use image node_id 7 for calling a global function with example usage: compare(func) without return types