code: def test_smoothed_regimes(self):
      assert_allclose(
          self.result.smoothed_marginal_probabilities[:, 0],
          hamilton_ar1_switch_tvtp_smoothed,
          atol=1e-5,
      )
  
imports: import warnings
  import os
  import numpy
  from numpy.testing import assert_equal, assert_allclose
  import pandas
  import pytest
  from statsmodels.tools import add_constant
  from statsmodels.tsa.regime_switching import markov_autoregression
label_desc: Use image node_id 4 for calling the TestHamiltonAR1SwitchTVTP obj's underlying member method code with example usage: obj.test_smoothed_regimes() without return types