def test_cache_options():
    try:
        from chest import Chest
    except __HOLE__:
        return
    cache = Chest()
    def inc2(x):
        assert 'y' in cache
        return x + 1

    with dask.set_options(cache=cache):
        get_sync({'x': (inc2, 'y'), 'y': 1}, 'x')
dataset/ETHPy150Open dask/dask/dask/tests/test_async.py/test_cache_options