code: def test_invalid_input(data):
      y, x = data
      with pytest.raises(ValueError, match="method must be one of"):
          DynamicOLS(y, x, method="unknown")
      with pytest.raises(
          ValueError, match="Unknown trend. Must be one"
      ):
          DynamicOLS(y, x, trend="cttt")
  
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 4 for calling a global function with example usage: test_invalid_input(data) without return types