class_docstr: This is a temporary base model from ETS, here I just copy everything I need
  from statespace.mlemodel.MLEModel
class_docstr_tok: ["This","is","a","temporary","base","model","from","ETS",",","here","I","just","copy","everything","I","need","from","statespace.mlemodel.MLEModel"]
code: def _wrap_results(
      self,
      params,
      result,
      return_raw,
      cov_type=None,
      cov_kwds=None,
      results_class=None,
      wrapper_class=None,
  ):
      if not return_raw:
          # Wrap in a results object
          result_kwargs = {}
          if cov_type is not None:
              result_kwargs["cov_type"] = cov_type
          if cov_kwds is not None:
              result_kwargs["cov_kwds"] = cov_kwds
  
          if results_class is None:
              results_class = self._res_classes["fit"][0]
          if wrapper_class is None:
              wrapper_class = self._res_classes["fit"][1]
  
          res = results_class(self, params, result, **result_kwargs)
          result = wrapper_class(res)
      return result
  
imports: from collections import OrderedDict
  import contextlib
  import warnings
  import numpy
  import pandas
  from scipy.stats import norm
  from statsmodels.base.data import PandasData
  from statsmodels.tools.decorators import cache_readonly
  from statsmodels.tools.eval_measures import aic, aicc, bic, hqic
  from statsmodels.tools.sm_exceptions import PrecisionWarning
  from statsmodels.tools.numdiff import _get_epsilon, approx_fprime, approx_fprime_cs, approx_hess_cs
  from statsmodels.tools.tools import pinv_extended
  import statsmodels.tsa.base.tsa_model
  from statsmodels.tsa.statespace.tools import _safe_cond
label_desc: Use image node_id 12 for calling the StateSpaceMLEModel obj's underlying member method code with example usage: obj._wrap_results(params, result, return_raw, cov_type, cov_kwds, results_class, wrapper_class) and returns: result