code: def test_ardl_order_exceptions(data):
      with pytest.raises(
          ValueError, match="lags must be a non-negative"
      ):
          ARDL(data.y, -1)
      with pytest.raises(
          ValueError, match="All values in lags must be positive"
      ):
          ARDL(data.y, [-1, 0, 2])
      with pytest.raises(
          ValueError, match="integer orders must be at least"
      ):
          ARDL(data.y, 2, data.x, order=0, causal=True)
      with pytest.raises(
          ValueError, match="integer orders must be at least"
      ):
          ARDL(data.y, 2, data.x, -1, causal=False)
      with pytest.raises(
          ValueError, match="sequence orders must be strictly positive"
      ):
          ARDL(
              data.y,
              2,
              data.x,
              {"lry": [0, 1], "ibo": 3, "ide": 0},
              causal=True,
          )
      with pytest.raises(
          TypeError, match="sequence orders must contain non-negative"
      ):
          ARDL(
              data.y,
              2,
              data.x,
              {"lry": [1, "apple"], "ibo": 3, "ide": 1},
              causal=True,
          )
      with pytest.raises(
          ValueError, match="sequence orders must contain distinct"
      ):
          ARDL(
              data.y,
              2,
              data.x,
              {"lry": [1, 1, 2, 3], "ibo": 3, "ide": [1, 1, 1]},
              causal=True,
          )
      with pytest.raises(
          ValueError, match="sequence orders must be strictly positive"
      ):
          ARDL(data.y, 2, data.x, [0, 1, 2], causal=True)
  
imports: from typing import NamedTuple
  import numpy
  from numpy.testing import assert_allclose
  import pandas
  from pandas.testing import assert_index_equal
  import pytest
  from statsmodels.datasets import danish_data
  from statsmodels.iolib.summary import Summary
  from statsmodels.tools.sm_exceptions import SpecificationWarning
  from statsmodels.tsa.ar_model import AutoReg
  from statsmodels.tsa.ardl.model import ARDL, UECM, ARDLResults, ardl_select_order
  from statsmodels.tsa.deterministic import DeterministicProcess
label_desc: Use image node_id 17 for calling a global function with example usage: test_ardl_order_exceptions(data) without return types