code: def test_move_directory_should_not_overwrite_existing(
      tmp_dir, dvc, scm
  ):
      tmp_dir.dvc_gen({"data": {"foo": "foo"}})
      new_dir = tmp_dir / "dir"
      new_dir.mkdir()
  
      dvc.move("data", "dir")
      assert not (tmp_dir / "data").exists()
      assert not (tmp_dir / "data.dvc").exists()
      assert set(new_dir.iterdir()) == {
          new_dir / ".gitignore",
          new_dir / "data.dvc",
          new_dir / "data",
      }
      assert set((new_dir / "data").iterdir()) == {
          new_dir / "data" / "foo"
      }
  
imports: import os
  import shutil
  import textwrap
  import pytest
  from dvc.cli import main
  from dvc.exceptions import MoveNotDataSourceError, OutputNotFoundError
label_desc: Use image node_id 9 for calling a global function with example usage: test_move_directory_should_not_overwrite_existing(tmp_dir, dvc, scm) without return types