code: def test_fir_block():
      # tets FIR models on block designs
      bp = block_paradigm()
      tr = 1.0
      frametimes = np.linspace(0, 127 * tr, 128)
      X, names = dmtx_light(
          frametimes,
          bp,
          hrf_model="fir",
          drift_model="blank",
          fir_delays=list(range(4)),
      )
      idx = bp.onset[bp.con_id == "c1"].astype(np.int_)
      assert X.shape == (128, 13)
      assert (X[idx, 4] == 1).all()
      assert (X[idx + 1, 5] == 1).all()
      assert (X[idx + 2, 6] == 1).all()
      assert (X[idx + 3, 7] == 1).all()
  
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 36 for calling a global function with example usage: test_fir_block() without return types