code: def test_deprecated_function():
      def func(a, b):
          return a + b
  
      deprecated = deprecated_function(func, "foo")
      with pytest.warns(DeprecationWarning):
          assert deprecated(1, 2) == 3
  
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 13 for calling a global function with example usage: test_deprecated_function() and returns: unknown