code: def delay(fn, opts, task, *args, **kwargs):
      
      if opts["stddev"] <= 0:
          t = opts["t"]
      elif opts["pdf"] == "gauss":
          t = random.gauss(opts["t"], opts["stddev"])
      elif opts["pdf"] == "uniform":
          t = random.uniform(opts["t"], opts["stddev"])
      else:
          raise ValueError("unknown delay decorator pdf '{}'".format(opts["pdf"]))
  
      time.sleep(t)
  
      return fn(task, *args, **kwargs)
docs: delay(t=5, stddev=0., pdf="gauss")
      Wraps a bound method of a task and delays its execution by *t* seconds.