class_docstr: Test the deprecation decorator for keyword arguments.
class_docstr_tok: ["Test","the","deprecation","decorator","for","keyword","arguments","."]
code: def test_replaced_by(self, recwarn):
      @deprecated_keyword_arg("b", "1.3.0", replaced_by="c")
      def simple_addition(a=1, b=Deprecated, c=1):
          result = a + c if b is Deprecated else a + b
          return result
  
      warn_msg_expected = (
          "Keyword argument 'b' in 'simple_addition' is deprecated and will be removed in future release 1.3.0."
          " It will be replaced by 'c'."
      )
  
      simple_addition(a=1, b=1)
      warn_obj = recwarn.pop(DeprecationWarning)
      assert str(warn_obj.message) == warn_msg_expected
  
file_path: adversarial-robustness-toolbox/tests/utils/test_utils.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import pytest
  from art.utils import Deprecated, deprecated, deprecated_keyword_arg
label_desc: Use image node_id 4 for calling the TestDeprecatedKeyword obj's underlying member method code with example usage: obj.test_replaced_by(recwarn) and returns: result