human
I wrote the below code

    def _traverse(u, v):
        w = tree[u][v]
        if (w == u):
            return []
        return ((_traverse(u, w) + [w]) + _traverse(w, v))
    return (([u] + _traverse(u, v)) + [v])

What's a good function header?

=====
Here's a good function header?
assistant
#Here's a good function header.

def predecessor_path(tree, u, v):