code: def test_retry_fn_timeout(tmpdir):
      success = tmpdir / "success"
      marker = tmpdir / "marker"
  
      def _fail_once():
          if not marker.exists():
              marker.write_text(".", encoding="utf-8")
              raise RuntimeError("Failing")
          time.sleep(5)
          success.write_text(".", encoding="utf-8")
          return
  
      assert not success.exists()
      assert not marker.exists()
  
      assert not retry_fn(
          fn=_fail_once,
          exception_type=RuntimeError,
          sleep_time=0,
          timeout=0.1,
      )
  
      assert not success.exists()
      assert marker.exists()
  
file_path: ray/python/ray/tune/tests/test_utils.py
imports: import io
  import logging
  import sys
  import time
  import pytest
  from ray.tune.search.variant_generator import format_vars
  from ray.tune.utils.util import retry_fn, Tee, logger
label_desc: Use image node_id 3 for calling a global function with example usage: test_retry_fn_timeout(tmpdir) without return types