(self)
Returns the parent of this searcher (if has_parent() is True), or
        else self.
Returns the parent of this searcher (if has_parent() is True), or
        else self.
Returns the parent of this searcher ( if has_parent () is True ) or else self .
def get_parent(self):
        """Returns the parent of this searcher (if has_parent() is True), or
        else self.
        """

        if self.has_parent():
            # Call the weak reference to get the parent searcher
            return self.parent()
        else:
            return self
def get_parent ( self ) : if self . has_parent ( ) : # Call the weak reference to get the parent searcher return self . parent ( ) else : return self