code: def test_safe_move_directory(tmpdir):
      src_dir = os.path.join(tmpdir, "src")
      dst_dir = os.path.join(tmpdir, "dst")
  
      os.mkdir(src_dir)
      os.mkdir(dst_dir)
  
      with open(os.path.join(src_dir, "file.txt"), "w") as f:
          f.write("test")
  
      safe_move_directory(src_dir, dst_dir)
  
      assert not os.path.exists(src_dir)
      assert os.path.exists(os.path.join(dst_dir, "file.txt"))
      with open(os.path.join(dst_dir, "file.txt")) as f:
          assert f.read() == "test"
  
file_path: ludwig/tests/ludwig/utils/test_fs_utils.py
imports: import logging
  import os
  import platform
  import tempfile
  from urllib.parse import quote
  import pytest
  from ludwig.utils.fs_utils import get_fs_and_path, list_file_names_in_directory, safe_move_directory
label_desc: Use image node_id 8 for calling a global function with example usage: test_safe_move_directory(tmpdir) without return types