code: def test_spm_hrf_errors():
      t_vec = np.arange(0, 32)
      # All 1s is fine
      res = spm_hrf_compat(t_vec, 1, 1, 1, 1)
      # 0 or negative raise error for other args
      args = [0]
      for i in range(4):
          pytest.raises(ValueError, spm_hrf_compat, t_vec, *args)
          args[-1] = -1
          pytest.raises(ValueError, spm_hrf_compat, t_vec, *args)
          args[-1] = 1
          args.append(0)
  
file_path: nipy/nipy/modalities/fmri/tests/test_hrf.py
imports: from os.path import dirname
  from os.path import join
  import numpy
  import pytest
  import scipy.io
  from numpy.testing import assert_almost_equal
  from scipy.stats import gamma
  from ..hrf import ddspmt, dspmt, gamma_expr, gamma_params, lambdify_t, spm_hrf_compat, spmt
label_desc: Use image node_id 4 for calling a global function with example usage: test_spm_hrf_errors() without return types