def tuplify(xs):
    """Turn a data structure into a tuple tree."""
    try:
        return tuple(tuplify(x) for x in xs)
    except __HOLE__:
        return xs
dataset/ETHPy150Open OP2/PyOP2/pyop2/utils.py/tuplify