human
Here's a good function header given the following:
I wrote the below code

    nodes = nx.shortest_path(G, u, v)
    def first_key(i, vv):
        keys = G[nodes[i]][vv].keys()
        keys = list(keys)
        return keys[0]
    edges = [first_key(i, vv) for (i, vv) in enumerate(nodes[1:])]
    return (nodes, edges)

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

def get_path(G, u, v):