code: def test_ignore_file_in_parent_path(
      tmp_dir, dvc, data_struct, pattern_list, result_set
  ):
      tmp_dir.gen(data_struct)
      tmp_dir.gen(DvcIgnore.DVCIGNORE_FILE, "\n".join(pattern_list))
      dvc._reset()
      result = dvc.dvcignore.find(dvc.fs, tmp_dir / "dir")
      assert set(result) == {
          (tmp_dir / relpath).fs_path for relpath in result_set
      }
  
imports: import os
  import shutil
  from pathlib import Path
  from typing import List
  import pytest
  from dvc.ignore import DvcIgnore, DvcIgnorePatterns
  from dvc.output import OutputIsIgnoredError
  from dvc.pathspec_math import PatternInfo, merge_patterns
  from dvc.repo import Repo
  from dvc.testing.tmp_dir import TmpDir
  from dvc_data.hashfile.build import IgnoreInCollectedDirError
  from dvc_data.hashfile.utils import get_mtime_and_size
label_desc: Use image node_id 15 for calling a global function with example usage: test_ignore_file_in_parent_path(tmp_dir, dvc, data_struct, pattern_list, result_set) without return types