code: def reset(self):
          
          self._stack = []
          self._callbacks = []
          pipes = self._pipelines
          self._pipelines = {}
          for pipe in pipes.values():
              pipe.reset()
docs: cleanup method. get rid of the stack and callbacks.
          :return: