code: def test_kstest(self):
      for varname, cdf in self.cdfs.items():
          samples = self.samples[varname]
          if samples.ndim == 1:
              t, p = stats.kstest(samples[:: self.ks_thin], cdf=cdf)
              assert self.alpha < p
          elif samples.ndim == 2:
              pvals = []
              for samples_, cdf_ in zip(samples.T, cdf):
                  t, p = stats.kstest(
                      samples_[:: self.ks_thin], cdf=cdf_
                  )
                  pvals.append(p)
              t, p = stats.combine_pvalues(pvals)
              assert self.alpha < p
          else:
              raise NotImplementedError()
  
imports: import arviz
  import numpy
  import numpy.testing
  import pytensor.tensor
  from scipy import stats
  import pymc
  from pymc.backends.arviz import to_inference_data
  from pymc.util import get_var_name
label_desc: Use image node_id 1 for calling the KnownCDF obj's underlying member method code with example usage: obj.test_kstest() without return types