code: def test_error(trivariate_data):
      y, x = trivariate_data
      if isinstance(x, pd.DataFrame):
          y = y.iloc[:20]
          x = x.iloc[:20]
      else:
          y = y[:20]
          x = x[:20]
      with pytest.raises(
          ValueError, match="max_lag and max_lead are too large"
      ):
          DynamicOLS(y, x, max_lag=10, max_lead=10)
  
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 12 for calling a global function with example usage: test_error(trivariate_data) without return types