code: def test_html_repr():
      pytest.importorskip("jinja2")
      y = da.random.random((10, 10), chunks=(5, 5))
      y[y < 0.8] = 0
      y = y.map_blocks(sparse.COO.from_numpy)
  
      text = y._repr_html_()
  
      assert "COO" in text
      assert "sparse" in text
      assert "Bytes" not in text
  
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 4 for calling a global function with example usage: test_html_repr() without return types