code: def load_results_statsmodels_exog_coint(dataset):
      """
      Load data with deterministic terms in `exog_coint`.
  
      Same as load_results_statsmodels() except that deterministic terms inside
      the cointegration relation are provided to :class:`VECM`'s `__init__()`
      method via the `eoxg_coint` parameter. This is to check whether the same
      results are produced no matter whether `exog_coint` or the `deterministic`
      argument is being used.
  
      Parameters
      ----------
      dataset : DataSet
      """
      results_per_deterministic_terms = dict.fromkeys(dataset.dt_s_list)
      endog = data[dataset]
      for dt_s_tup in dataset.dt_s_list:
          det_string = dt_s_tup[0]
  
          if "ci" not in det_string and "li" not in det_string:
              exog_coint = None
          else:
              exog_coint = []
              if "li" in det_string:
                  exog_coint.append(
                      1 + np.arange(len(endog)).reshape(-1, 1)
                  )
                  det_string = det_string[:-2]
              if "ci" in det_string:
                  exog_coint.append(np.ones(len(endog)).reshape(-1, 1))
                  det_string = det_string[:-2]
              # reversing (such that constant is first and linear is second)
              exog_coint = exog_coint[::-1]
              exog_coint = np.hstack(exog_coint)
          model = VECM(
              endog,
              exog=None,
              exog_coint=exog_coint,
              k_ar_diff=3,
              coint_rank=coint_rank,
              deterministic=det_string,
              seasons=dt_s_tup[1],
              first_season=dt_s_tup[2],
          )
          results_per_deterministic_terms[dt_s_tup] = model.fit(
              method="ml"
          )
      return results_per_deterministic_terms
  
imports: import numpy
  from numpy.testing import assert_, assert_allclose, assert_array_equal, assert_raises, assert_raises_regex
  import pytest
  import statsmodels.datasets.interest_inflation.data
  from statsmodels.tools.testing import assert_equal
  from statsmodels.tsa.vector_ar.tests.JMulTi_results.parse_jmulti_vecm_output import dt_s_tup_to_string, load_results_jmulti, sublists
  from statsmodels.tsa.vector_ar.util import seasonal_dummies
  from statsmodels.tsa.vector_ar.var_model import VARProcess
  from statsmodels.tsa.vector_ar.vecm import VECM, select_coint_rank, select_order
label_desc: Use image node_id 4 for calling a global function with example usage: load_results_statsmodels_exog_coint(dataset) and returns: results_per_deterministic_terms