code: def test_basic(data):
      is_pandas = isinstance(data[0], pd.Series)
      pred = PredictionResults(data[0], data[1])
      np.testing.assert_allclose(data[0], pred.predicted_mean)
      np.testing.assert_allclose(data[1], pred.var_pred_mean)
      if is_pandas:
          assert isinstance(pred.predicted_mean, pd.Series)
          assert isinstance(pred.var_pred_mean, pd.Series)
          assert isinstance(pred.se_mean, pd.Series)
      frame = pred.summary_frame()
      assert isinstance(frame, pd.DataFrame)
      assert list(
          frame.columns
          == ["mean", "mean_se", "mean_ci_lower", "mean_ci_upper"]
      )
  
file_path: statsmodels/statsmodels/tsa/base/tests/test_prediction.py
imports: from statsmodels.compat.pandas import MONTH_END
  import numpy
  import pandas
  import pytest
  from scipy import stats
  from statsmodels.tsa.base.prediction import PredictionResults
label_desc: Use image node_id 2 for calling a global function with example usage: test_basic(data) without return types