class_docstr: Tests for the default SMC kernel
class_docstr_tok: ["Tests","for","the","default","SMC","kernel"]
code: def test_kernel_kwargs(self):
      with self.fast_model:
          with warnings.catch_warnings():
              warnings.filterwarnings(
                  "ignore", ".*number of samples.*", UserWarning
              )
              trace = pm.sample_smc(
                  draws=10,
                  chains=1,
                  threshold=0.7,
                  correlation_threshold=0.02,
                  return_inferencedata=False,
                  kernel=pm.smc.IMH,
              )
  
          assert trace.report.threshold == 0.7
          assert trace.report.n_draws == 10
  
          assert trace.report.correlation_threshold == 0.02
  
      with self.fast_model:
          with warnings.catch_warnings():
              warnings.filterwarnings(
                  "ignore", ".*number of samples.*", UserWarning
              )
              trace = pm.sample_smc(
                  draws=10,
                  chains=1,
                  threshold=0.95,
                  correlation_threshold=0.02,
                  return_inferencedata=False,
                  kernel=pm.smc.MH,
              )
  
          assert trace.report.threshold == 0.95
          assert trace.report.n_draws == 10
          assert trace.report.correlation_threshold == 0.02
  
imports: import logging
  import platform
  import warnings
  import numpy
  import pytensor.tensor
  import pytest
  import scipy.stats
  from arviz.data.inference_data import InferenceData
  import pymc
  from pymc.backends.base import MultiTrace
  from pymc.pytensorf import floatX
  from pymc.smc.kernels import IMH, systematic_resampling
  from tests.helpers import assert_random_state_equal
label_desc: Use image node_id 8 for calling the TestSMC obj's underlying member method code with example usage: obj.test_kernel_kwargs() without return types