def METHOD_NAME(f):
    @wraps(f)
    def inner_f(*args, **kwargs):
        warning_message = (
            f"'{f.__name__}' (from '{f.__module__}') is deprecated and will be removed from version '{version}'."
        )
        if message is not None:
            warning_message += " " + message
        warnings.warn(warning_message, FutureWarning)
        return f(*args, **kwargs)
    return inner_f