code: def check_results(res: ARDLResults):
      model: ARDL = res.model
      n, k = model._x.shape
      assert model.score(res.params).shape == (k,)
      assert model.hessian(res.params).shape == (k, k)
      assert isinstance(model.loglike(res.params), float)
      assert model.information(res.params).shape == (k, k)
      assert isinstance(model.exog_names, list)
      assert model.ar_lags is None or isinstance(model.ar_lags, list)
      assert isinstance(model.seasonal, bool)
      assert isinstance(model.hold_back, int)
      assert isinstance(model.ardl_order, tuple)
      assert isinstance(model.df_model, int)
      assert isinstance(model.nobs, int)
      assert isinstance(model.endog_names, str)
      assert isinstance(model.k_constant, int)
      res.summary()
      res.test_heteroskedasticity()
      res.diagnostic_summary()
      assert res.ar_lags is None or isinstance(res.ar_lags, list)
      assert res.df_resid == (res.nobs - res.df_model)
      assert res.scale == res.sigma2
      assert isinstance(res.fpe, float)
  
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 14 for calling a global function with example usage: check_results(res) without return types