code: def test_basic(trivariate_data):
      # Tested against Eviews. Note: bandwidth is 1 less than Eviews bandwidth (2)
      y, x = trivariate_data
      res = DynamicOLS(y, x, leads=1, lags=1).fit(
          bandwidth=1, df_adjust=True
      )
      assert_allclose(
          res.params, [-11.65535, 2.301629, 91.65392], rtol=1e-4
      )
      assert_allclose(
          res.std_errors, [0.102846, 0.017243, 1.341955], rtol=1e-4
      )
      assert_allclose(
          res.tvalues, [-113.3279, 133.4834, 68.29882], rtol=1e-4
      )
      assert_allclose(res.pvalues, [0.0000, 0.0000, 0.0000], atol=1e-5)
      assert_allclose(res.long_run_variance, 39.35663, rtol=1e-4)
      assert_allclose(
          np.sqrt(res.residual_variance), 4.759419, rtol=1e-4
      )
      assert_allclose(res.rsquared, 0.998438, atol=1e-5)
      assert_allclose(res.rsquared_adj, 0.998425, atol=1e-5)
  
file_path: arch/arch/tests/unitroot/test_dynamic_ols.py
imports: import numpy
  from numpy.testing import assert_allclose
  import pandas
  import pytest
  from arch.unitroot.cointegration import DynamicOLS
label_desc: Use image node_id 6 for calling a global function with example usage: test_basic(trivariate_data) without return types