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

    def decorating_func(func):
        method = func.func_name
        @functools.wraps(func)
        def _timing_stats(ctrl, *args, **kwargs):
            start_time = time.time()
            resp = func(ctrl, *args, **kwargs)
            if (is_success(resp.status_int) or is_redirection(resp.status_int) or (resp.status_int == HTTP_NOT_FOUND)):
                ctrl.logger.timing_since((method + '.timing'), start_time, **dec_kwargs)
            else:
                ctrl.logger.timing_since((method + '.errors.timing'), start_time, **dec_kwargs)
            return resp
        return _timing_stats
    return decorating_func

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

def timing_stats(**dec_kwargs):