code: def test_ardl_select_order(
      data: Dataset,
      maxlag,
      maxorder,
      trend,
      causal,
      fixed,
      use_numpy,
      seasonal,
      hold_back,
  ):
      y, x, z, maxorder, period = _convert_to_numpy(
          data, fixed, maxorder, seasonal, use_numpy
      )
      res = ardl_select_order(
          y,
          maxlag,
          x,
          maxorder,
          trend,
          fixed=fixed,
          causal=causal,
          hold_back=hold_back,
          period=period,
          seasonal=seasonal,
          glob=seasonal,
      )
      assert isinstance(res.model, ARDL)
      assert isinstance(res.aic, pd.Series)
      assert isinstance(res.bic, pd.Series)
      assert isinstance(res.hqic, pd.Series)
      assert res.period == period
      assert res.trend == trend
      assert res.seasonal == seasonal
      assert isinstance(res.dl_lags, dict)
      assert res.ar_lags is None or isinstance(res.ar_lags, list)
  
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 22 for calling a global function with example usage: test_ardl_select_order(data, maxlag, maxorder, trend, causal, fixed, use_numpy, seasonal, hold_back) without return types