def test_common_subexpressions():
    a = delayed([1, 2, 3])
    res = a[0] + a[0]
    assert a[0].key in res.dask
    assert res.dask in a.key
    assert len(res.dask) == 3
dataset/ETHPy150Open dask/dask/dask/tests/test_delayed.py/test_common_subexpressions/swapped operands of `in`