code: def test_nearest_overlap():
      a = np.arange(144).reshape(12, 12).astype(float)
  
      darr = da.from_array(a, chunks=(6, 6))
      garr = overlap(
          darr,
          depth={0: 5, 1: 5},
          boundary={0: "nearest", 1: "nearest"},
      )
      tarr = trim_internal(garr, {0: 5, 1: 5}, boundary="nearest")
      assert_array_almost_equal(tarr, a)
  
imports: from __future__ import annotations
  import pytest
  import numpy
  from numpy.testing import assert_array_almost_equal, assert_array_equal
  import dask.array
  from dask.array.lib.stride_tricks import sliding_window_view
  from dask.array.overlap import boundaries, constant, ensure_minimum_chunksize, nearest, overlap, overlap_internal, periodic, reflect, trim_internal
  from dask.array.utils import assert_eq, same_keys
label_desc: Use image node_id 25 for calling a global function with example usage: test_nearest_overlap() without return types