code: def test_one(kind):
      a = np.random.random(size=30)
      a_ = da.from_array(a, 3)
  
      dask_test = getattr(dask.array.stats, kind)
      scipy_test = getattr(scipy.stats, kind)
  
      result = dask_test(a_)
      expected = scipy_test(a)
  
      assert isinstance(result, Delayed)
      assert allclose(result.compute(), expected)
  
file_path: dask/dask/array/tests/test_stats.py
imports: from __future__ import annotations
  import warnings
  import pytest
  from packaging.version import parse
  import numpy
  import dask.array
  import dask.array.stats
  from dask.array.utils import allclose, assert_eq
  from dask.delayed import Delayed
label_desc: Use image node_id 3 for calling a global function with example usage: test_one(kind) without return types