code: def test_renamed_kwargs():
      kwargs, c = {"a": 1}, 2
      val = renamed_kwargs("b", new_name="c", value=c, kwargs=kwargs)
      assert val == 2
  
      kwargs, c = {"a": 1, "c": 2}, 2
      val = renamed_kwargs("b", new_name="c", value=c, kwargs=kwargs)
      assert val == 2
  
      with pytest.warns(DeprecationWarning):
          kwargs, c = {"a": 1, "b": 3}, 2
          val = renamed_kwargs(
              "b", new_name="c", value=c, kwargs=kwargs
          )
          assert val == 3
          assert kwargs == {"a": 1, "b": 3, "c": 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 1 for calling a global function with example usage: test_renamed_kwargs() without return types