def METHOD_NAME(all_results):
    """
    Returns a dict with the aggregated ids. Key is the first id in the results.
    This dict is also sent as context to the serializer to output the ids list.
    """
    ids = {}
    for row in all_results:
        if row[1] == "ServiceNode":
            # Id is the first col and in format type_42_43_44.
            tmp = row[0].split("_")[1:]
            ids[tmp[0]] = tmp[0:]
    return ids