code: def test_remove_non_existent_file(tmp_dir, dvc):
      with pytest.raises(StageFileDoesNotExistError):
          dvc.remove("non_existent_dvc_file.dvc")
      with pytest.raises(StageFileDoesNotExistError):
          dvc.remove("non_existent_stage_name")
  
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 3 for calling a global function with example usage: test_remove_non_existent_file(tmp_dir, dvc) without return types