def METHOD_NAME(destination_path: Path, archive: TarFile):
    canonical_destination_path = destination_path.resolve()
    for member in archive.getmembers():
        _detect_unsafe_extraction_conditions(canonical_destination_path, member)