def METHOD_NAME():
    class SampleClass:
        def __init__(self):
            pass
        @deprecated()
        def sample_method(self):
            return "xxxx...."
    s = SampleClass()
    with pytest.warns(DeprecationWarning) as w:
        output = s.sample_method()
        assert output == "xxxx...."
        msg = (
            "sample_method is a no-op in sagemaker>=2.\n"
            "See: https://sagemaker.readthedocs.io/en/stable/v2.html for details."
        )
        assert str(w[-1].message) == msg