trees.py
def depth(self, tree: Tree) -> Optional[int]:
        """ Return the depth of the subtree <tree> relative to <self>. Return
        None if <tree> is not a descendant of <self> and <tree> is <self>.

        Runtime: O(log(n))
        """
        raise NotImplementedError
 Return the depth of the subtree <tree> relative to <self>. Return
        None if <tree> is not a descendant of <self> and <tree> is <self>.

        Runtime: O(log(n))
        
Return the depth of the subtree  relative to . Return
None if  is not a descendant of  and  is .


Return the depth of the subtree relative to . Return None if is not a descendant of and is .
def depth(self, tree: Tree) -> Optional[int]:
        raise NotImplementedError
def depth ( self , tree : Tree ) -> Optional [ int ] : raise NotImplementedError
Return the depth of the subtree <tree> relative to <self>.
Return the depth of the subtree <tree > relative to <self > .
""" Return the depth of the subtree <tree> relative to <self>. Return
        None if <tree> is not a descendant of <self> and <tree> is <self>.

        Runtime: O(log(n))
        """
self
tree
Tree