code: def test_pairwise_kernels(kernel):
      X = da.random.uniform(size=(100, 4), chunks=(50, 4))
      a = dask_ml.metrics.pairwise.PAIRWISE_KERNEL_FUNCTIONS[kernel]
      b = sklearn.metrics.pairwise.PAIRWISE_KERNEL_FUNCTIONS[kernel]
  
      r1 = a(X)
      r2 = b(X.compute())
      assert isinstance(X, da.Array)
      assert_eq(r1, r2)
  
file_path: dask-ml/tests/metrics/test_metrics.py
imports: import dask
  import dask.array
  import numpy
  import numpy.testing
  import pytest
  import sklearn
  import sklearn.linear_model
  import sklearn.metrics
  from dask.array.utils import assert_eq
  import dask_ml.metrics
  import dask_ml.wrappers
label_desc: Use image node_id 5 for calling a global function with example usage: test_pairwise_kernels(kernel) without return types