def METHOD_NAME(sdk_version=None):
    """Decorator for raising deprecated warning for a feature in sagemaker>=2
    Args:
        sdk_version (str): the sdk version of removal of support.
    Usage:
        @deprecated()
        def sample_function():
            print("xxxx....")
        @deprecated(sdk_version="2.66")
        class SampleClass():
            def __init__(self):
                print("xxxx....")
    """
    def deprecate(obj):
        def wrapper(*args, **kwargs):
            removed_warning(obj.__name__, sdk_version)
            return obj(*args, **kwargs)
        return wrapper
    return deprecate