def test_optimize_slicing_on_file(file):
    f = symbol('f', discover(file))
    assert optimize((f.x + 1)[:5], file).isidentical(f.x[:5] + 1)
dataset/ETHPy150Open blaze/blaze/blaze/compute/tests/test_h5py.py/test_optimize_slicing_on_file/original