code: def test_setitem_1d():
      x = cupy.arange(10)
      dx = da.from_array(x.copy(), chunks=(5,))
  
      x[x > 6] = -1
      x[x % 2 == 0] = -2
  
      dx[dx > 6] = -1
      dx[dx % 2 == 0] = -2
  
      assert_eq(x, dx)
  
imports: from __future__ import annotations
  import numpy
  import pytest
  from packaging.version import parse
  import dask
  import dask.array
  from dask.array.utils import assert_eq
  from dask.sizeof import sizeof
label_desc: Use image node_id 9 for calling a global function with example usage: test_setitem_1d() without return types