def isDescendant(node1, node2):
    """
    Checks if node1 is descendant of node2

    :param node1:
    :param node2:
    :return: True if node1 is descendant of node2, False otherwise
    """
    if node2 is None:
        return False
    if node1 is node2:
        return True
    return isDescendant(node1, node2.left) if node1.value < node2.value else isDescendant(node1, node2.right)