code: def get_ancestors(self):
          
          node = self
          ancestor_list = []
          while node.parent is not None:
              ancestor_list.append(node.parent)
              node = node.parent
  
          return ancestor_list
docs: Returns a list of ancestors of the node. Ordered from the earliest.
  
          :return: node's ancestors, ordered from most recent
          :rtype: list(FenwickNode)