code: def do_echo(n, tlist=[0], f=echo, trials=2, runner=time_throughput):
      A = np.zeros((len(tlist), 2))
      for i, t in enumerate(tlist):
          t1 = t2 = 0
          for _ in range(trials):
              time.sleep(0.25)
              ts = runner(n, t, f)
              t1 += ts[0]
              t2 += ts[1]
          t1 /= trials
          t2 /= trials
          A[i] = (t1, t2)
          A[i] = n / A[i]
          print(t, A[i])
      return A
  
file_path: ipyparallel/docs/source/examples/throughput.py
imports: import time
  import numpy
  import ipyparallel
label_desc: Use image node_id 5 for calling a global function with example usage: do_echo(n, tlist, f, trials, runner) and returns: A