code: def test_default_retry_success_custom_num_tries():
      CUSTOM_TRIES = 3
      ctr = 0
  
      @default_retry(tries=CUSTOM_TRIES)
      def flaky_function():
          nonlocal ctr
          if ctr < CUSTOM_TRIES - 1:
              ctr += 1
              raise Exception(f"Ctr: {ctr} too low.")
  
          return
  
      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 3 for calling a global function with example usage: test_default_retry_success_custom_num_tries() without return types