code: def test_index_with_int_dask_array_dtypes(dtype):
      a = da.from_array(cupy.array([10, 20, 30, 40]), chunks=-1)
      idx = da.from_array(np.array([1, 2]).astype(dtype), chunks=1)
      assert_eq(a[idx], cupy.array([20, 30]))
  
      # CuPy index
      idx = da.from_array(cupy.array([1, 2]).astype(dtype), chunks=1)
      assert_eq(a[idx], cupy.array([20, 30]))
  
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 7 for calling a global function with example usage: test_index_with_int_dask_array_dtypes(dtype) without return types