code: def test_2d(self):
      res = self.res
      data = self.data
  
      fitted = res.fittedvalues.iloc[1:10:2]
  
      pred = res.predict(data.iloc[1:10:2])
      pdt.assert_index_equal(pred.index, fitted.index)
      assert_allclose(pred.values, fitted.values, rtol=1e-13)
  
      # plain dict
      xd = dict(zip(data.columns, data.iloc[1:10:2].values.T))
      pred = res.predict(xd)
      assert_equal(pred.index, np.arange(len(pred)))
      assert_allclose(pred.values, fitted.values, rtol=1e-13)
  
file_path: statsmodels/statsmodels/base/tests/test_predict.py
imports: from statsmodels.compat.pandas import testing
  import numpy
  import pandas
  from numpy.testing import assert_allclose, assert_equal
  from statsmodels.regression.linear_model import OLS
  from statsmodels.genmod.generalized_linear_model import GLM
label_desc: Use image node_id 1 for calling the CheckPredictReturns obj's underlying member method code with example usage: obj.test_2d() without return types