code: def test_deprecated_for_class():
      @deprecated(sdk_version="2.66.6")
      class SampleClass:
          def __init__(self):
              pass
  
      with pytest.warns(DeprecationWarning) as w:
          SampleClass()
          msg = (
              "SampleClass is a no-op in sagemaker>=2.66.6.\n"
              "See: https://sagemaker.readthedocs.io/en/stable/v2.html for details."
          )
          assert str(w[-1].message) == msg
  
file_path: sagemaker-python-sdk/tests/unit/test_deprecations.py
imports: from __future__ import absolute_import
  import pytest
  from sagemaker.deprecations import deprecated_class, deprecated_deserialize, deprecated_function, deprecated_serialize, removed_arg, removed_function, removed_kwargs, renamed_kwargs, deprecation_warning, deprecated
label_desc: Use image node_id 8 for calling a global function with example usage: test_deprecated_for_class() without return types