def nested_get(ind, coll):
    if isinstance(ind, list):
        return tuple([nested_get(i, coll) for i in ind])
    else:
        return coll[ind]
Get nested index from collection
dataset/ETHPy150Open dask/dask/dask/async.py/nested_get