def merge(dict_1, dict_2, func=lambda x, y: x + y):
    res = dict_1.copy()  # "= dict(d1)" for lists of tuples
    for key, val in dict_2.iteritems():  # ".. in d2" for lists of tuple
        try:
            res[key] = func(res[key], val)
        except KeyError:
            res[key] = val
    return res
Check if the queue is marked to be drained.
dataset/ETHPy150Open columbia/libtrack/libtrack/parser/src/telesphorus/helpers/dict_utils.py/merge--crossover with--dataset/ETHPy150Open ganeti/ganeti/lib/jstore.py/CheckDrainFlag