docstr: Tests if the decorator correctly takes the suppress all errors
  flag from the kwargs of the decorated function.
docstr_tok: ["Tests","if","the","decorator","correctly","takes","the","suppress","all","errors","flag","from","the","kwargs","of","the","decorated","function","."]
code: def test_kwarg_passage(self) -> None:
      """
      Tests if the decorator correctly takes the suppress all errors
      flag from the kwargs of the decorated function.
      """
  
      class DecoratorTester:
          @retry_on_exception(default_return_on_suppression="SUCCESS")
          def error_throwing_function(
              self, suppress_all_errors=False, extra_kwarg="1234"
          ):
              # Testing that kwargs get passed down correctly
              self.assertEqual(extra_kwarg, "abcd")
              raise RuntimeError(
                  "ERROR THROWN FOR TESTING. SHOULD HAVE BEEN CAUGHT"
              )
  
      decorator_tester = DecoratorTester()
      self.assertEqual(
          "SUCCESS",
          decorator_tester.error_throwing_function(
              suppress_all_errors=True, extra_kwarg="abcd"
          ),
      )
  
file_path: Ax/ax/utils/common/tests/test_executils.py
imports: import logging
  import time
  from asyncio import iscoroutinefunction
  from unittest.mock import Mock
  from ax.utils.common.executils import retry_on_exception
  from ax.utils.common.testutils import TestCase
label_desc: Use image node_id 2 for calling the TestRetryDecorator obj's underlying member method code with example usage: obj.test_kwarg_passage() without return types