def tupletuple_to_dict(tupletuple):
    d = {}
    for t in tupletuple:
        (key, value) = t
        d[key] = value
    return d
Convert a tuple of tuples to dict
dataset/ETHPy150Open kapsiry/sikteeri/membership/utils.py/tupletuple_to_dict