def METHOD_NAME(tree, goal):
    """DFS in tree for goal."""
    for node in tree.keys():
        if node == goal:
            return tree[node]
        else:
            result = METHOD_NAME(tree[node], goal)
            if result is not None:
                return result