code: def test_predicted(self):
      res, results = self.res, self.results
      assert_allclose(
          res.fittedvalues, results.fittedvalues, rtol=0.002
      )
      predicted = res.predict(res.model.exog)  # should be equal
      assert_allclose(predicted, results.fittedvalues, rtol=0.0016)
  
file_path: statsmodels/statsmodels/regression/tests/test_glsar_stata.py
imports: import numpy
  from numpy.testing import assert_almost_equal, assert_allclose, assert_equal
  from statsmodels.regression.linear_model import GLSAR
  from statsmodels.tools.tools import add_constant
  from statsmodels.datasets import macrodata
label_desc: Use image node_id 1 for calling the CheckStataResultsPMixin obj's underlying member method code with example usage: obj.test_predicted() without return types