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

    @wraps(func)
    def new_func(*args, **kw):
        if (not is_partition(*args[:2])):
            raise nx.NetworkXError('`partition`    is    not    a    valid    partition    of    the    nodes    of    G')
        return func(*args, **kw)
    return new_func

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

def require_partition(func):