code: def test_from_delayed_meta():
      def f():
          return sparse.COO.from_numpy(np.eye(3))
  
      d = dask.delayed(f)()
      x = da.from_delayed(
          d, shape=(3, 3), meta=sparse.COO.from_numpy(np.eye(1))
      )
      assert isinstance(x._meta, sparse.COO)
      assert_eq(x, x)
  
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 5 for calling a global function with example usage: test_from_delayed_meta() and returns: sparse