code: def test_exceptions(trivariate_data, estimator):
      y, x = trivariate_data
      with pytest.raises(
          ValueError,
          match="The number of observations in y and x differ",
      ):
          estimator(y[1:], x)
      mod = estimator(y, x)
      with pytest.raises(
          ValueError, match="kernel is not a known kernel estimator"
      ):
          mod.fit(kernel="unknown")
  
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 3 for calling a global function with example usage: test_exceptions(trivariate_data, estimator) without return types