code: def test_grid_search():
      rs = np.random.RandomState(3)
      X = rs.normal(size=(30, 5))
      params = {"bandwidth": np.logspace(-1, 1, 20)}
      grid = GridSearchCV(KernelDensity(), params)
      grid.fit(X)
  
file_path: cuml/python/cuml/tests/test_kernel_density.py
imports: from cuml.testing.utils import as_type
  from sklearn.model_selection import GridSearchCV
  import pytest
  from hypothesis.extra.numpy import arrays
  from hypothesis import given, settings, assume, strategies
  from cuml.neighbors import KernelDensity, VALID_KERNELS, logsumexp_kernel
  from cuml.common.exceptions import NotFittedError
  from sklearn.metrics import pairwise_distances
  from sklearn.neighbors._ball_tree import kernel_norm
  from cuml.internals.safe_imports import cpu_only_import
label_desc: Use image node_id 6 for calling a global function with example usage: test_grid_search() without return types