def METHOD_NAME(record):
    pkg_version = None
    for v in ["version", "version-semver", "version-date", "version-string"]:
        if v in record:
            pkg_version = record[v]
    assert pkg_version is not None, "Each pakage has one version type"
    return pkg_version