def parent_of(self, node):
parent = node.parent<EOL>while parent is not None:<EOL><INDENT>if self is parent:<EOL><INDENT>return True<EOL><DEDENT>parent = parent.parent<EOL><DEDENT>return False<EOL>
Check if this node is the parent of the given node.

        :param node: The node to check if it is the child.
        :type node: NodeNG

        :returns: True if this node is the parent of the given node,
            False otherwise.
        :rtype: bool