code: def pre_run_hook(self, func, prefix=None):
          
          cf = self.capture(func, prefix=prefix)
          self.pre_run_hooks.append(cf)
          return cf
docs: Decorator to add a pre-run hook to this ingredient.
  
          Pre-run hooks are captured functions that are run, just before the
          main function is executed.