def METHOD_NAME(record):
    """Get the OpenAIRE type of a record."""
    if is_openaire_publication(record):
        return _OAType.publication
    elif is_openaire_dataset(record):
        return _OAType.dataset
    elif is_openaire_software(record):
        return _OAType.software
    elif is_openaire_other(record):
        return _OAType.other
    return None