docstr: Tests if the decorator correctly returns the default value.
docstr_tok: ["Tests","if","the","decorator","correctly","returns","the","default","value","."]
code: def test_default_return(self) -> None:
      """
      Tests if the decorator correctly returns the default value.
      """
  
      class DecoratorTester:
          @retry_on_exception(
              suppress_all_errors=True,
              default_return_on_suppression="SUCCESS",
          )
          def error_throwing_function(self) -> None:
              raise RuntimeError(
                  "ERROR THROWN FOR TESTING. SHOULD HAVE BEEN CAUGHT"
              )
  
      decorator_tester = DecoratorTester()
      self.assertEqual(
          "SUCCESS", decorator_tester.error_throwing_function()
      )
  
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 1 for calling the TestRetryDecorator obj's underlying member method code with example usage: obj.test_default_return() without return types