code: def test_make_log_dirs():
      import shutil
  
      try:
          filepath = tempfile.mkdtemp()
          make_run_dir(filepath, max_run_num=3)
          assert os.path.exists(os.path.join(filepath, "run1"))
          make_run_dir(filepath, max_run_num=3)
          assert os.path.exists(os.path.join(filepath, "run2"))
          try:
              make_run_dir(filepath, max_run_num=3)
              assert False
          except ValueError:
              pass
      finally:
          shutil.rmtree(filepath)
  
file_path: ultranest/tests/test_utils.py
imports: import numpy
  import tempfile
  import os
  from ultranest.utils import vectorize, is_affine_transform, normalised_kendall_tau_distance, make_run_dir
  from ultranest.utils import distributed_work_chunk_size
  from numpy.testing import assert_allclose
  import pytest
label_desc: Use image node_id 4 for calling a global function with example usage: test_make_log_dirs() without return types