def unhash_index(_hash):
    """
    Decode hased value to tuple

    :param _hash: str, hash_index result
    :return: tuple of tuples

    hash = 'q1::1__q2::2'
    return ((q1, 1), (q2, 2))
    """
    try:
        return tuple(map(lambda x: tuple(x.split('::')), _hash.split('__')))
    except:
        print(_hash)