def _get_unique_key(format_str, fn, *args, **kwargs):
    varnames = fn.func_code.co_varnames
    kwargs.update(dict(zip(varnames, args)))
    return ("{}-" + format_str).format(fn.__name__, **kwargs)
Lines args and kwargs up with those specified in the definition of fn and
dataset/ETHPy150Open dimagi/commcare-hq/corehq/util/decorators.py/_get_unique_key