code: def test_kernels(self, case):
      name, bw = case
  
      rvs = self.rvs
      x_plot = self.x_plot
  
      kde = []
      kce = []
      for xi in x_plot:
          kde.append(kern.pdf_kernel_asym(xi, rvs, bw, name))
          kce.append(kern.cdf_kernel_asym(xi, rvs, bw, name))
  
      kde = np.asarray(kde)
      kce = np.asarray(kce)
  
      # average mean squared error
      amse = ((kde - self.pdf_dgp) ** 2).mean()
      assert_array_less(amse, self.amse_pdf)
      amse = ((kce - self.cdf_dgp) ** 2).mean()
      assert_array_less(amse, self.amse_cdf)
  
imports: import numpy
  from numpy.testing import assert_allclose, assert_array_less
  from scipy import stats
  import pytest
  import statsmodels.nonparametric.kernels_asymmetric
label_desc: Use image node_id 1 for calling the CheckKernels obj's underlying member method code with example usage: obj.test_kernels(case) without return types