code: def test_move_file_inside_directory(tmp_dir, dvc):
      tmp_dir.gen({"data": {"foo": "foo"}})
      file = tmp_dir / "data" / "foo"
      dvc.add(file.fs_path)
  
      with (tmp_dir / "data").chdir():
          assert main(["move", "foo", "data.txt"]) == 0
  
      assert not file.exists()
      assert (tmp_dir / "data" / "data.txt").exists()
      assert (tmp_dir / "data" / "data.txt.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 11 for calling a global function with example usage: test_move_file_inside_directory(tmp_dir, dvc) without return types