code: def setup_test_values(d: dict):
      d = d.copy()
      r2 = d.pop("R2")
      variance = d.pop("VARIANCE")
      results = pd.DataFrame(d, index=["params", "se", "tstats"]).T
      return EviewsTestResult(
          results.params,
          results.se,
          results.tstats,
          r2[0],
          r2[1],
          variance[0] ** 2,
          variance[1],
      )
  
file_path: arch/arch/tests/unitroot/test_fmols_ccr.py
imports: from typing import NamedTuple
  from numpy.testing import assert_allclose
  import pandas
  import pytest
  from statsmodels.iolib.summary import Summary
  from arch.unitroot.cointegration import CanonicalCointegratingReg, FullyModifiedOLS
label_desc: Use image node_id 4 for calling a global function with example usage: setup_test_values(d) and returns: EviewsTestResult