code: def test_default_retry_failure():
      ctr = 0
  
      @default_retry()
      def flaky_function():
          nonlocal ctr
          if ctr < TRIES:
              ctr += 1
              raise Exception(f"Ctr: {ctr} too low.")
  
          return
  
      with pytest.raises(Exception):
          flaky_function()
  
imports: import pytest
  from ludwig.constants import TRIES
  from ludwig.utils.error_handling_utils import default_retry
label_desc: Use image node_id 2 for calling a global function with example usage: test_default_retry_failure() without return types