def METHOD_NAME(parents, id_to_version):
    if parents:
        return [(p, id_to_version[p]["data"]) for p in parents]
    # If there are no parents, then compare to an empty dictionary
    return [(None, {})]