def dict_merge(*args):
    d = {}
    keys = reduce(operator.add, (k.keys() for k in args))
    for key in keys:
        d[key] = []
        for k in args:
            if k in key:
                d[key] += [k[key]]
        if len(d[key]) == 1:
            d[key] = d[key][0]
    return d
dataset/ETHPy150Open HHammond/kcbo/kcbo/utils.py/dict_merge/swapped operands of `in`