def depth(self):
    current_depth = 0
if self.left:
    current_depth = max(current_depth, self.left.depth())
if self.right:
    current_depth = max(current_depth, self.right.depth())
return current_depth + 1
depth of a tree python