code: def test_meta_from_array():
      x = sparse.COO.from_numpy(np.eye(1))
      y = da.utils.meta_from_array(x, ndim=2)
      assert isinstance(y, 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 8 for calling a global function with example usage: test_meta_from_array() without return types