code: def test_spm_1():
      # Check that the nipy design matrix is close enough to the SPM one
      # (it cannot be identical, because the hrf shape is different)
      frametimes = np.linspace(0, 99, 100)
      conditions = [
          "c0",
          "c0",
          "c0",
          "c1",
          "c1",
          "c1",
          "c2",
          "c2",
          "c2",
      ]
      onsets = [30, 50, 70, 10, 30, 80, 30, 40, 60]
      paradigm = EventRelatedParadigm(conditions, onsets)
      X1 = make_dmtx(frametimes, paradigm, drift_model="blank")
      spm_dmtx = DMTX["arr_0"]
      assert ((spm_dmtx - X1.matrix) ** 2).sum() / (
          spm_dmtx**2
      ).sum() < 0.1
  
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 38 for calling a global function with example usage: test_spm_1() without return types