code: def test_dmtx20():
      # Test for commit 10662f7
      frametimes = np.arange(
          0, 128
      )  # was 127 in old version of _cosine_drift
      paradigm = modulated_event_paradigm()
      X, names = dmtx_light(
          frametimes,
          paradigm,
          hrf_model="canonical",
          drift_model="cosine",
      )
  
      # check that the drifts are not constant
      assert np.all(np.diff(X[:, -2]) != 0)
  
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 35 for calling a global function with example usage: test_dmtx20() without return types