human
I wrote the below code

    calls = [0]
    @contextmanager
    def asserter(count, msg=None):
        calls[0] = 0
        (yield)
        assert (calls[0] == count)
    def wrapped(*args, **kwargs):
        calls[0] += 1
        if (func is not None):
            return func(*args, **kwargs)
    return (asserter, wrapped)

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

def make_call_asserter(func=None):