def alias_dict_from_tuples(aliases_tuples):
    alias_dict = {}
    for (ns, ids) in aliases_tuples:
        if ns in alias_dict:
            alias_dict[ns] += [ids]
        else:
            alias_dict[ns] = [ids]
    return alias_dict
dataset/ETHPy150Open Impactstory/total-impact-webapp/totalimpactwebapp/aliases.py/alias_dict_from_tuples/original