code: def test_index_with_int_dask_array_0d(chunks):
      # Slice by 0-dimensional array
      x = da.from_array(
          cupy.array([[10, 20, 30], [40, 50, 60]]), chunks=chunks
      )
      idx0 = da.from_array(1, chunks=1)
      assert_eq(x[idx0, :], x[1, :])
      assert_eq(x[:, idx0], x[:, 1])
  
      # CuPy index
      idx0 = da.from_array(cupy.array(1), chunks=1)
      assert_eq(x[idx0, :], x[1, :])
      assert_eq(x[:, idx0], x[:, 1])
  
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 3 for calling a global function with example usage: test_index_with_int_dask_array_0d(chunks) without return types