code: def test_design_warnings():
      """test that warnings are correctly raised upon weird design specification"""
      condition = ([-25, 20, 36.5], [0, 0, 0], [1, 1, 1])
      frametimes = np.linspace(0, 69, 70)
      hrf_model = "spm"
      with warnings.catch_warnings(record=True):
          warnings.simplefilter("always")
          pytest.warns(
              UserWarning,
              compute_regressor,
              condition,
              hrf_model,
              frametimes,
          )
      condition = ([-25, -25, 36.5], [0, 0, 0], [1, 1, 1])
      with warnings.catch_warnings(record=True):
          warnings.simplefilter("always")
          pytest.warns(
              UserWarning,
              compute_regressor,
              condition,
              hrf_model,
              frametimes,
          )
  
imports: import warnings
  import numpy
  import pytest
  from numpy.testing import assert_almost_equal, assert_array_equal
  from ..hemodynamic_models import _hrf_kernel, _orthogonalize, _regressor_names, _resample_regressor, _sample_condition, compute_regressor, glover_hrf, glover_time_derivative, spm_dispersion_derivative, spm_hrf, spm_time_derivative
label_desc: Use image node_id 19 for calling a global function with example usage: test_design_warnings() without return types