code: def test_find_outs_by_path(tmp_dir, dvc, path):
      (stage,) = tmp_dir.dvc_gen(
          {"dir": {"subdir": {"file": "file"}, "other": "other"}}
      )
  
      outs = dvc.find_outs_by_path(path, strict=False)
      assert len(outs) == 1
      assert outs[0].fs_path == stage.outs[0].fs_path
  
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 2 for calling a global function with example usage: test_find_outs_by_path(tmp_dir, dvc, path) without return types