code: def test_move_gitignored(tmp_dir, scm, dvc):
      from dvc.dvcfile import FileIsGitIgnored
  
      tmp_dir.dvc_gen({"foo": "foo"})
  
      os.mkdir("dir")
      (tmp_dir / "dir").gen(".gitignore", "*")
  
      with pytest.raises(FileIsGitIgnored):
          dvc.move("foo", "dir")
  
      assert (tmp_dir / "foo").read_text() == "foo"
      assert (tmp_dir / "foo.dvc").exists()
      assert not (tmp_dir / "dir" / "foo").exists()
      assert not (tmp_dir / "dir" / "foo.dvc").exists()
  
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 14 for calling a global function with example usage: test_move_gitignored(tmp_dir, scm, dvc) without return types