@wraps(func)
def func_wrapper(*args, **kwargs):
    warnings.simplefilter('always', DeprecationWarning)
    for (old, new) in arg_mapping.items():
        if (old in kwargs):
            warnings.warn(f"Keyword argument '{old}' has been deprecated in favour of '{new}'. '{old}' will be removed in a future version.", category=DeprecationWarning, stacklevel=2)
            val = kwargs.pop(old)
            kwargs[new] = val
    warnings.simplefilter('default', DeprecationWarning)
    return func(*args, **kwargs)
@wraps(func)
def func_wrapper(*args, **kwargs):
    warnings.simplefilter('always', DeprecationWarning)
    for (old, new) in arg_mapping.items():
        if (old in kwargs):
            warnings.warn(f"Keyword argument '{old}' has been deprecated in favour of '{new}'. '{old}' will be removed in a future version.", category=DeprecationWarning, stacklevel=2)
            val = kwargs.pop(old)
            kwargs[new] = val
    warnings.simplefilter('default', DeprecationWarning)
    return func(*args, **kwargs)