parameters: (self)
return_statement: return curr
docstring: Returns the root Node in the tree this Node belongs to.
docstring_summary: Returns the root Node in the tree this Node belongs to.
docstring_tokens: Returns the root Node in the tree this Node belongs to .
function: def GetRoot(self):
      '''Returns the root Node in the tree this Node belongs to.'''
      curr = self
      while curr.parent:
        curr = curr.parent
      return curr
function_tokens: def GetRoot ( self ) : curr = self while curr . parent : curr = curr . parent return curr