code: def test_deprecated_method():
      msg = "``tests.utils.test_annotations.MyClass.method`` is deprecated"
      with pytest.warns(FutureWarning, match=re.escape(msg)):
          assert MyClass().method() == 0
      assert msg in MyClass.method.__doc__
  
imports: import re
  import pytest
  from mlflow.utils.annotations import deprecated
label_desc: Use image node_id 2 for calling a global function with example usage: test_deprecated_method() without return types