def METHOD_NAME(cls, name, *args, **kwargs):
    # Store args and kwargs in the history only if they are given.
    history_entry = []
    if len(args) != 0:
        history_entry.append(args)
    if len(kwargs) != 0:
        history_entry.append(kwargs)
    if len(history_entry) == 0:
        cls.history.append(name)
    else:
        cls.history.append([name] + history_entry)