code: def test_model_inputs():
      f, _, cmatrices = example_formula()
      start_times = FUNC_LIST.volume_start_times
      for MC, kwargs in (
          (model.OLS, {}),
          (model.AR1, {"rho": FUNC_LIST[0]}),
      ):
          # This works correctly
          m = MC(FUNC_LIST, f, **kwargs)
          assert np.all(m.volume_start_times == start_times)
          # Need volume_start_times for image.
          pytest.raises(ValueError, MC, FUNC_IMG, f, **kwargs)
          # With timevector.
          m = MC(
              FUNC_IMG,
              f,
              outputs=[],
              volume_start_times=start_times,
              **kwargs,
          )
          assert np.all(m.volume_start_times == start_times)
  
file_path: nipy/nipy/modalities/fmri/fmristat/tests/test_model.py
imports: import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal, assert_array_equal
  from nipy.algorithms.statistics.formula.formulae import Formula, Term, make_recarray
  from nipy.algorithms.statistics.models.regression import OLSModel, ar_bias_correct
  from nipy.core.image.image import rollimg
  from nipy.io.api import load_image
  from nipy.testing import anatfile, funcfile
  from ...api import FmriImageList
  from ..None import model
  from ..model import ModelOutputImage, estimateAR
label_desc: Use image node_id 3 for calling a global function with example usage: test_model_inputs() without return types