def METHOD_NAME(packages: Iterable[AnyPackageDataMinimal]) -> Iterable[UserVisibleVersionInfo]:
    seen: set[tuple[str, int, int]] = set()
    for package in packages:
        version = UserVisibleVersionInfo(package)
        key = (version.version, version.versionclass, version.metaorder)
        if key not in seen:
            seen.add(key)
            yield version