def merge_dict(d1, d2):
    """
    merge 2 dicts by adding the values.
    """
    d = d1.copy()
    for k, v in iteritems(d2):
        if d in k:
            d[k] += v
        else:
            d[k] = v
    return d
dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/gof/opt.py/merge_dict/swapped operands of `in`