code: def test_event_design():
      block = altdescr["block"]
      event = altdescr["event"]
      t = time_vector
  
      bkeep = np.not_equal((np.arange(block.time.shape[0])) % 6, 0)
      ekeep = np.greater(np.arange(event.time.shape[0]), 0)
  
      # Even though there is a FIAC block experiment
      # the design is represented as an event design
      # with the same event repeated several times in a row...
  
      Xblock, cblock = design.event_design(
          block[bkeep], t, hrfs=delay.spectral
      )
      Xevent, cevent = design.event_design(
          event[ekeep], t, hrfs=delay.spectral
      )
  
file_path: nipy/nipy/modalities/fmri/fmristat/tests/test_FIAC.py
imports: import numpy
  from nipy.algorithms.statistics.formula import formulae
  from nipy.algorithms.statistics.models.regression import OLSModel
  from nipy.testing import assert_almost_equal
  from ...None import design, hrf, utils
  from ..None import hrf
  from .FIACdesigns import N_ROWS, altdescr, descriptions, fmristat, time_vector
label_desc: Use image node_id 8 for calling a global function with example usage: test_event_design() without return types