<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_ancestor_of(self, other, include_self=False):
 """Is this node an ancestor of `other`?"""

        return other.is_descendant_of(self, include_self=include_self)