code: def test_mismatch_lead_lag(data):
      y, x = data
      with pytest.raises(
          ValueError, match="common is specified but leads"
      ):
          DynamicOLS(y, x, "c", 4, 5, True)
      with pytest.raises(
          ValueError, match="common is specified but max_lead"
      ):
          DynamicOLS(y, x, max_lag=6, max_lead=7, common=True)
  
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 3 for calling a global function with example usage: test_mismatch_lead_lag(data) without return types