code: def compare_ftest(contrast_res, other, decimal=(5, 4)):
      assert_almost_equal(
          contrast_res.fvalue, other[0], decimal=decimal[0]
      )
      assert_almost_equal(
          contrast_res.pvalue, other[1], decimal=decimal[1]
      )
      assert_equal(contrast_res.df_num, other[2])
      assert_equal(contrast_res.df_denom, other[3])
      assert_equal("f", other[4])
  
file_path: statsmodels/statsmodels/regression/tests/test_glsar_gretl.py
imports: import os
  import numpy
  from numpy.testing import assert_almost_equal, assert_equal, assert_allclose, assert_array_less
  from statsmodels.regression.linear_model import OLS, GLSAR
  from statsmodels.tools.tools import add_constant
  from statsmodels.datasets import macrodata
  import statsmodels.stats.sandwich_covariance
  import statsmodels.stats.diagnostic
  import statsmodels.stats.outliers_influence
label_desc: Use image node_id 1 for calling a global function with example usage: compare_ftest(contrast_res, other, decimal) without return types