def _invert_dependencies(deps):
    ideps = {}
    for k, v in deps.items():
        for d in v:
            l = ideps.get(d, None)
            if l:
                l.append(k)
            else:
                l = [k]
            ideps[d] = l

    return ideps
failsafe_add gracefully handles IntegrityError from dupe entries
dataset/ETHPy150Open cournape/Bento/bento/commands/dependency.py/_invert_dependencies--crossover with--dataset/ETHPy150Open hasgeek/coaster/tests/test_models.py/TestCoasterModels.test_failsafe_add