code: def test_from_array():
      x = sparse.COO.from_numpy(np.eye(10))
      d = da.from_array(x, chunks=(5, 5))
  
      assert isinstance(d._meta, sparse.COO)
      assert_eq(d, d)
      assert isinstance(d.compute(), sparse.COO)
  
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 6 for calling a global function with example usage: test_from_array() without return types