class_docstr: Tests for the default SMC kernel
class_docstr_tok: ["Tests","for","the","default","SMC","kernel"]
code: def test_unobserved_categorical(self):
      with pm.Model() as m:
          mu = pm.Categorical("mu", p=[0.1, 0.3, 0.6], size=2)
          pm.Normal("like", mu=mu, sigma=0.1, observed=[1, 2])
  
          trace = pm.sample_smc(chains=1, return_inferencedata=False)
  
      assert np.all(np.median(trace["mu"], axis=0) == [1, 2])
  
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 5 for calling the TestSMC obj's underlying member method code with example usage: obj.test_unobserved_categorical() without return types