code: def test_move_file_between_directories(tmp_dir, dvc):
      tmp_dir.gen({"data": {"foo": "foo"}})
      dvc.add(os.path.join("data", "foo"))
  
      (tmp_dir / "data2").mkdir()
  
      assert main(["move", os.path.join("data", "foo"), "data2"]) == 0
      assert not (tmp_dir / "data" / "foo").exists()
      assert not (tmp_dir / "data" / "foo.dvc").exists()
      assert (tmp_dir / "data2" / "foo").exists()
      assert (tmp_dir / "data2" / "foo.dvc").exists()
  
      d = (tmp_dir / "data2" / "foo.dvc").load_yaml()
      assert d["outs"][0]["path"] == "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 10 for calling a global function with example usage: test_move_file_between_directories(tmp_dir, dvc) without return types