parameters: (self)
return_statement: return self.GetParent().GetTopAncestor()
docstring: Return the top-most ancestor of this shape (the root of
          the composite).
docstring_summary: Return the top-most ancestor of this shape (the root of
          the composite).
docstring_tokens: Return the top - most ancestor of this shape ( the root of the composite ) .
function: def GetTopAncestor(self):
          """Return the top-most ancestor of this shape (the root of
          the composite).
          """
          if not self.GetParent():
              return self
  
          if isinstance(self.GetParent(), DivisionShape):
              return self
          return self.GetParent().GetTopAncestor()
function_tokens: def GetTopAncestor ( self ) : if not self . GetParent ( ) : return self if isinstance ( self . GetParent ( ) , DivisionShape ) : return self return self . GetParent ( ) . GetTopAncestor ( )