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

    def predict(u, v):
        return (G.degree(u) * G.degree(v))
    return _apply_prediction(G, predict, ebunch)

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

@not_implemented_for('directed')
@not_implemented_for('multigraph')
def preferential_attachment(G, ebunch=None):