code: def test_exceptions():
      if debug_mode:
          if "exceptions" not in to_test:
              return
          else:
              print("\n\nEXCEPTIONS\n", end="")
      for ds in datasets:
          for dt in dt_s_list:
              if debug_mode:
                  print("\n" + dt_s_tup_to_string(dt) + ": ", end="")
  
              # instant causality:
              ### 0<signif<1
              assert_raises(
                  ValueError,
                  results_sm[ds][dt].test_inst_causality,
                  0,
                  0,
              )  # this means signif=0
              ### causing must be int, str or iterable of int or str
              assert_raises(
                  TypeError,
                  results_sm[ds][dt].test_inst_causality,
                  [0.5],
              )
  
imports: import numpy
  from numpy.testing import assert_, assert_allclose, assert_raises
  import statsmodels.datasets.macrodata.data
  from statsmodels.tsa.vector_ar.tests.JMulTi_results.parse_jmulti_vecm_output import sublists
  from statsmodels.tsa.vector_ar.var_model import VAR
  from .JMulTi_results.parse_jmulti_var_output import dt_s_tup_to_string, load_results_jmulti
label_desc: Use image node_id 17 for calling a global function with example usage: test_exceptions() without return types