docs: def reset_tree(self):
          """
          Resets the current tree to empty.
          """
          self.tree = {}
          self.tree['leaves'] = []
          self.tree['levels'] = []
          self.tree['is_ready'] = False