code: def deprecated(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
  
file_path: sagemaker-python-sdk/src/sagemaker/deprecations.py
imports: from __future__ import absolute_import
  import logging
  import warnings
label_desc: Use image node_id 11 for calling a global function with example usage: deprecated(sdk_version) and returns: deprecate, wrapper, obj