def hist_calls_with_dims(**dims):
def hist_wrapper(fn):<EOL><INDENT>@functools.wraps(fn)<EOL>def fn_wrapper(*args, **kwargs):<EOL><INDENT>_histogram = histogram(<EOL>"<STR_LIT>" % pyformance.registry.get_qualname(fn), **dims)<EOL>rtn = fn(*args, **kwargs)<EOL>if type(rtn) in (int, float):<EOL><INDENT>_histogram.add(rtn)<EOL><DEDENT>return rtn<EOL><DEDENT>return fn_wrapper<EOL><DEDENT>return hist_wrapper<EOL>
Decorator to check the distribution of return values of a
    function with dimensions.