human
Complete this python program:
def make_call_asserter(func=None):
assistant
#Here is the Python code you requested.

    """Utility to assert a certain number of function calls.
    :param func: Additional callback for each function call.
    >>> assert_calls, func = make_call_asserter()
    >>> with assert_calls(2):
    func()
    func()
    """
    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)