code: def test_dmtx7():
      # idem test_dmtx1, but odd paradigm
      tr = 1.0
      frametimes = np.linspace(0, 127 * tr, 128)
      conditions = [0, 0, 0, 1, 1, 1, 3, 3, 3]
      # no condition 'c2'
      onsets = [30, 70, 100, 10, 30, 90, 30, 40, 60]
      paradigm = EventRelatedParadigm(conditions, onsets)
      hrf_model = "Canonical"
      X, names = dmtx_light(
          frametimes,
          paradigm,
          hrf_model=hrf_model,
          drift_model="polynomial",
          drift_order=3,
      )
      assert len(names) == 7
  
imports: import os.path
  from unittest import skipIf
  import numpy
  from numpy.testing import assert_almost_equal, assert_array_equal
  from ..design_matrix import _convolve_regressors, _cosine_drift, dmtx_from_csv, dmtx_light, make_dmtx
  from ..experimental_paradigm import BlockParadigm, EventRelatedParadigm
label_desc: Use image node_id 22 for calling a global function with example usage: test_dmtx7() without return types