code: def test_boundaries():
      x = cupy.arange(64).reshape((8, 8))
      d = da.from_array(x, chunks=(4, 4), asarray=False)
  
      e = da.overlap.boundaries(d, {0: 2, 1: 1}, {0: 0, 1: "periodic"})
  
      expected = np.array(
          [
              [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
              [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
              [7, 0, 1, 2, 3, 4, 5, 6, 7, 0],
              [15, 8, 9, 10, 11, 12, 13, 14, 15, 8],
              [23, 16, 17, 18, 19, 20, 21, 22, 23, 16],
              [31, 24, 25, 26, 27, 28, 29, 30, 31, 24],
              [39, 32, 33, 34, 35, 36, 37, 38, 39, 32],
              [47, 40, 41, 42, 43, 44, 45, 46, 47, 40],
              [55, 48, 49, 50, 51, 52, 53, 54, 55, 48],
              [63, 56, 57, 58, 59, 60, 61, 62, 63, 56],
              [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
              [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
          ]
      )
      assert_eq(e, expected, check_type=False)
  
file_path: dask/dask/array/tests/test_cupy_overlap.py
imports: from __future__ import annotations
  import numpy
  import pytest
  from packaging.version import parse
  import dask.array
  from dask.array.utils import assert_eq, same_keys
label_desc: Use image node_id 7 for calling a global function with example usage: test_boundaries() without return types