code: def bench_ipp_seq(tasks, workers, task_duration, warmup=True):
      from ipyparallel import Client
  
      rc = Client()
      # dview = rc[:]
      dview = rc.load_balanced_view()
  
      if warmup:
          dview.map_sync(
              sleep_worker, [task_duration for i in range(tasks)]
          )
  
      dview.block = True
  
      def run(tasks):
          objs = [
              dview.apply_async(sleep_worker, task_duration)
              for i in range(tasks)
          ]
          for task in objs:
              task.get()
  
      res, elapsed = timeit(run, tasks)
      return elapsed
  
imports: import time
  import fiber
  import multiprocessing
  import logging
  import subprocess
  import argparse
  from pprint import pprint
label_desc: Use image node_id 14 for calling a global function with example usage: bench_ipp_seq(tasks, workers, task_duration, warmup) and returns: elapsed