Write a decorator instrument that records, on the wrapper:
calls: how many times the function was callederrors: how many calls raised an exception (the exception must still propagate)last_args: the (args, kwargs) of the most recent callUse functools.wraps so the wrapped function keeps its __name__.