code: def test_convolve_regressors():
      # tests for convolve_regressors helper function
      conditions = ["c0", "c1"]
      onsets = [20, 40]
      paradigm = EventRelatedParadigm(conditions, onsets)
      # names not passed -> default names
      frametimes = np.arange(100)
      f, names = _convolve_regressors(paradigm, "canonical", frametimes)
      assert names == ["c0", "c1"]
  
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 13 for calling a global function with example usage: test_convolve_regressors() without return types