import collections import functools def check(func): func._args_counter = collections.Counter() @functools.wraps(func) def wrapper(*args): key =