code: def test_trim_boundary(boundary):
      x = da.from_array(np.arange(24).reshape(4, 6), chunks=(2, 3))
      x_overlaped = da.overlap.overlap(
          x, 2, boundary={0: "reflect", 1: boundary}
      )
      x_trimmed = da.overlap.trim_overlap(
          x_overlaped, 2, boundary={0: "reflect", 1: boundary}
      )
      assert np.all(x == x_trimmed)
  
      x_overlaped = da.overlap.overlap(x, 2, boundary={1: boundary})
      x_trimmed = da.overlap.trim_overlap(
          x_overlaped, 2, boundary={1: boundary}
      )
      assert np.all(x == x_trimmed)
  
      x_overlaped = da.overlap.overlap(x, 2, boundary=boundary)
      x_trimmed = da.overlap.trim_overlap(
          x_overlaped, 2, boundary=boundary
      )
      assert np.all(x == x_trimmed)
  
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 36 for calling a global function with example usage: test_trim_boundary(boundary) without return types