code: def test_numel(numel, axis, keepdims):
      x = np.random.random((2, 3, 4))
      x[x < 0.8] = 0
      x[x > 0.9] = np.nan
  
      xs = sparse.COO.from_numpy(x, fill_value=0.0)
  
      assert_eq(
          numel(x, axis=axis, keepdims=keepdims),
          numel(xs, axis=axis, keepdims=keepdims),
      )
  
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 9 for calling a global function with example usage: test_numel(numel, axis, keepdims) without return types