def METHOD_NAME(func):
    @functools.wraps(func)
    def wrapper(*args, **kwargs):
        current_app.logger.warning(
            f"The method or function {func.__name__} is deprecated and it is expected to be sunset in version {version}. Please, switch to using {inspect.getmodule(alternative).__name__}:{alternative.__name__} to suppress this warning."
        )
        return func(*args, **kwargs)
    return wrapper