code: def test_index_with_int_dask_array_negindex(chunks):
      a = da.arange(4, chunks=chunks, like=cupy.array(()))
      idx = da.from_array([-1, -4], chunks=1)
      assert_eq(a[idx], cupy.array([3, 0]))
  
      # CuPy index
      idx = da.from_array(cupy.array([-1, -4]), chunks=1)
      assert_eq(a[idx], cupy.array([3, 0]))
  
file_path: dask/dask/array/tests/test_cupy_slicing.py
imports: from __future__ import annotations
  import numpy
  import pytest
  import dask.array
  from dask.array.utils import assert_eq
label_desc: Use image node_id 5 for calling a global function with example usage: test_index_with_int_dask_array_negindex(chunks) without return types