def METHOD_NAME(
    patches: Path, results: list[tuple[int, bool]], tmp_path: Path
):
    # generate dummy files
    for patch in patches:
        (tmp_path / patch).parent.mkdir(parents=True, exist_ok=True)
        (tmp_path / patch).touch()
    src_dir = tmp_path
    assert _guess_patch_strip_level(patches, src_dir) == results[0]
    src_dir = src_dir / "some"
    assert _guess_patch_strip_level(patches, src_dir) == results[1]
    src_dir = src_dir / "common"
    assert _guess_patch_strip_level(patches, src_dir) == results[2]
    src_dir = src_dir / "prefix"
    assert _guess_patch_strip_level(patches, src_dir) == results[3]