code: def test_array_function_sparse(func):
      sparse = pytest.importorskip("sparse")
      x = da.random.default_rng().random((500, 500), chunks=(100, 100))
      x[x < 0.9] = 0
  
      y = x.map_blocks(sparse.COO)
  
      assert_eq(func(x), func(y))
  
file_path: dask/dask/array/tests/test_array_function.py
imports: from __future__ import annotations
  import numpy
  import pytest
  import dask.array
  from dask.array.tests.test_dispatch import EncapsulateNDArray, WrappedArray
  from dask.array.utils import assert_eq
label_desc: Use image node_id 5 for calling a global function with example usage: test_array_function_sparse(func) without return types