code: def reset(self):
          
          self.command_stack = []
  
          self.scripts = set()
          self.watches = []
          # clean up the other instance attributes
          self.watching = False
          self.explicit_transaction = False
docs: Reset back to empty pipeline.