def METHOD_NAME(matches: dict[Search, Search]) -> list[Match]:
    matches_set: set[Match] = set()
    for s1, s2 in matches.items():
        if (s1, s2) in matches_set or (s2, s1) in matches_set:
            continue
        matches_set.add((s1, s2))
    return list(matches_set)