code: def test_predict(self):
      # Predictions conditional on regime (the same no matter which
      # probabilities are selected)
      for name in ["predicted", "filtered", "smoothed", None]:
          actual = self.model.predict(
              self.true["params"], probabilities=name, conditional=True
          )
          assert_allclose(actual[0], self.true["predict0"], atol=1e-6)
          assert_allclose(actual[1], self.true["predict1"], atol=1e-6)
  
      # Predicted
      actual = self.model.predict(
          self.true["params"], probabilities="predicted"
      )
      assert_allclose(actual, self.true["predict_predicted"], atol=1e-5)
  
      # Filtered
      actual = self.model.predict(
          self.true["params"], probabilities="filtered"
      )
      assert_allclose(
          self.model.predict(
              self.true["params"], probabilities="filtered"
          ),
          self.true["predict_filtered"],
          atol=1e-5,
      )
  
      # 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)
  
imports: import os
  import warnings
  import numpy
  from numpy.testing import assert_allclose, assert_raises
  import pandas
  import pytest
  from statsmodels.tsa.regime_switching import markov_switching, markov_regression
label_desc: Use image node_id 4 for calling the TestFedFundsConst obj's underlying member method code with example usage: obj.test_predict() without return types