def getdepth(tree):
    """
	Returns the depth of the tree

	param tree -- the decision tree

	"""
    if tree.tb is None and tree.fb is None:
        return 0
    return max(getdepth(tree.tb), getdepth(tree.fb)) + 1