code: def data_parent(self) -> Optional["InternalNode"]:
          
          parent = self.parent
          while parent:
              if isinstance(parent, DataNode):
                  return parent
              parent = parent.parent
docs: Return the closest ancestor data node.