code: def test_coarsen_unaligned_shape():
      """https://github.com/dask/dask/issues/10274"""
      x = da.random.random(100)
      res = da.coarsen(np.mean, x, {0: 3}, trim_excess=True)
      assert res.chunks == ((33,),)
  
file_path: dask/dask/array/tests/test_chunk.py
imports: from __future__ import annotations
  import pytest
  import operator
  import numpy
  import dask.array
  from dask.array.chunk import coarsen, getitem, keepdims_wrapper
label_desc: Use image node_id 5 for calling a global function with example usage: test_coarsen_unaligned_shape() without return types