code: def setup_class(
      cls,
      model_class,
      missing=None,
      mean_atol=0,
      cov_atol=0,
      use_complex=False,
      *args,
      **kwargs,
  ):
      cls.mean_atol = mean_atol
      cls.cov_atol = cov_atol
  
      endog = dta.copy()
  
      if missing == "all":
          endog.iloc[0:50, :] = np.nan
      elif missing == "partial":
          endog.iloc[0:50, 0] = np.nan
      elif missing == "mixed":
          endog.iloc[0:50, 0] = np.nan
          endog.iloc[19:70, 1] = np.nan
          endog.iloc[39:90, 2] = np.nan
          endog.iloc[119:130, 0] = np.nan
          endog.iloc[119:130, 2] = np.nan
          endog.iloc[-10:, :] = np.nan
  
      if model_class in [
          sarimax.SARIMAX,
          structural.UnobservedComponents,
      ]:
          endog = endog.iloc[:, 2]
  
      cls.mod = model_class(endog, *args, **kwargs)
      params = cls.mod.start_params
      if use_complex:
          params = params + 0j
      cls.res = cls.mod.smooth(params)
  
      cls.sim_cfa = cls.mod.simulation_smoother(method="cfa")
      cls.sim_cfa.simulate()
      prefix = "z" if use_complex else "d"
      cls._sim_cfa = cls.sim_cfa._simulation_smoothers[prefix]
  
imports: import os
  import numpy
  from numpy.testing import assert_allclose
  import pandas
  from scipy.linalg import cho_solve_banded
  from statsmodels import datasets
  from statsmodels.tsa.statespace import sarimax, structural, dynamic_factor, varmax
label_desc: Use image node_id 1 for calling the CheckPosteriorMoments obj's underlying member method code with example usage: obj.setup_class(cls, model_class, missing, mean_atol, cov_atol, use_complex) without return types