code: def top_parent(self):
          
          parent = self.parent
          while parent is not None:
              if parent.parent is None:
                  return parent
              else:
                  parent = parent.parent
          return self
docs: Reference to top parent declaration.
  
             @type: declaration_t