code: def test_removed_function():
      removed = removed_function("foo")
      with pytest.warns(DeprecationWarning):
          removed()
  
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 10 for calling a global function with example usage: test_removed_function() without return types