code: def test_find_outs_by_path_does_graph_checks(tmp_dir, dvc):
      tmp_dir.dvc_gen("foo", "foo")
      shutil.copyfile("foo.dvc", "foo-2.dvc")
  
      dvc._reset()
      with pytest.raises(OutputDuplicationError):
          dvc.find_outs_by_path("foo")
  
file_path: dvc/tests/unit/repo/test_repo.py
imports: import os
  import shutil
  import pytest
  from dvc.exceptions import OutputDuplicationError
  from dvc.repo import NotDvcRepoError, Repo, locked
  from dvc_data.hashfile.hash_info import HashInfo
label_desc: Use image node_id 3 for calling a global function with example usage: test_find_outs_by_path_does_graph_checks(tmp_dir, dvc) without return types