code: def test_remove_file_target(tmp_dir, dvc):
      tmp_dir.dvc_gen("foo", "foo")
  
      with pytest.raises(
          StageFileIsNotDvcFileError,
          match="'foo' is not a .dvc file. Do you mean 'foo.dvc'?",
      ):
          dvc.remove("foo")
  
      dvc.remove("foo.dvc")
  
file_path: dvc/tests/func/test_remove.py
imports: import os
  import pytest
  from dvc.cli import main
  from dvc.fs import system
  from dvc.stage.exceptions import StageFileDoesNotExistError, StageFileIsNotDvcFileError
  from dvc.utils.fs import remove
  from dvc_objects.errors import ObjectDBError
  from tests.utils import get_gitignore_content
label_desc: Use image node_id 2 for calling a global function with example usage: test_remove_file_target(tmp_dir, dvc) without return types