code: def test_predict(self):
      # Smoothed
      actual = self.model.predict(
          self.true["params"], probabilities="smoothed"
      )
      assert_allclose(actual, self.true["predict_smoothed"], atol=1e-6)
      actual = self.model.predict(
          self.true["params"], probabilities=None
      )
      assert_allclose(actual, self.true["predict_smoothed"], atol=1e-6)
  
      actual = self.result.predict(probabilities="smoothed")
      assert_allclose(actual, self.true["predict_smoothed"], atol=1e-6)
      actual = self.result.predict(probabilities=None)
      assert_allclose(actual, self.true["predict_smoothed"], atol=1e-6)
  
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 3 for calling the TestHamiltonAR2Switch obj's underlying member method code with example usage: obj.test_predict() without return types