def combine_dicts(dicts_tuple):
    ret = {}
    for prefix,dictionary in dicts_tuple:
        for key in dictionary.keys():
            ret['%s%s' % (prefix, key)] = dictionary[key]
    return ret
Combines multiple dictionaries into one by adding a prefix to keys
dataset/ETHPy150Open yosinski/deep-visualization-toolbox/misc.py/combine_dicts