code: def test_map_blocks():
      x = da.eye(10, chunks=5)
      y = x.map_blocks(
          sparse.COO.from_numpy, meta=sparse.COO.from_numpy(np.eye(1))
      )
      assert isinstance(y._meta, sparse.COO)
      assert_eq(y, y)
  
file_path: dask/dask/array/tests/test_sparse.py
imports: from __future__ import annotations
  import numpy
  import pytest
  from packaging.version import parse
  import dask
  import dask.array
  from dask.array.reductions import nannumel, numel
  from dask.array.utils import assert_eq
label_desc: Use image node_id 7 for calling a global function with example usage: test_map_blocks() without return types