def METHOD_NAME(func):
    @functools.wraps(func)
    def wrapper(*args, **kwargs):
        name = func.func_name if sys.version_info[0] < 3 else func.__name__
        deprecated_warning(type_='Function',
                           name=name,
                           reason=reason,
                           replacement=replacement,
                           since_version=since_version,
                           only_once=only_once,
                           skip_backtrace_count=skip_backtrace_count,
                           deprecated_since=deprecated_since)
        return func(*args, **kwargs)
    return wrapper