code: def test_move_file_to_directory_without_specified_target_name(
      tmp_dir, dvc
  ):
      tmp_dir.dvc_gen("foo", "foo")
      tmp_dir.gen({"data": {"bar": "bar"}})
  
      assert main(["move", "foo", "data"]) == 0
      assert not (tmp_dir / "foo").exists()
      assert not (tmp_dir / "foo.dvc").exists()
      assert (tmp_dir / "data" / "foo").exists()
      assert (tmp_dir / "data" / "foo.dvc").exists()
  
      new_stage = (tmp_dir / "data" / "foo.dvc").load_yaml()
      assert new_stage["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 8 for calling a global function with example usage: test_move_file_to_directory_without_specified_target_name(tmp_dir, dvc) without return types