code: def test_parcel_analysis_error():
      pytest.raises(
          ValueError,
          _test_parcel_analysis_error,
          vcon_imgs=list(range(NSUBJ + 1)),
      )
      pytest.raises(
          ValueError, _test_parcel_analysis_error, cvect=np.ones(1)
      )
      pytest.raises(
          ValueError,
          _test_parcel_analysis_error,
          design_matrix=np.random.rand(NSUBJ, 2),
      )
      pytest.raises(
          ValueError,
          _test_parcel_analysis_error,
          design_matrix=np.random.rand(NSUBJ + 1, 2),
          cvect=np.ones(2),
      )
      pytest.raises(
          ValueError,
          _test_parcel_analysis_error,
          design_matrix=np.random.rand(NSUBJ, 2),
          cvect=np.ones(3),
      )
  
file_path: nipy/nipy/algorithms/group/tests/test_parcel_analysis.py
imports: import os
  import numpy
  import pytest
  from numpy.testing import assert_array_equal
  from ....core.image.image_spaces import make_xyz_image, xyz_affine
  from ..parcel_analysis import ParcelAnalysis, _smooth_image_pair, parcel_analysis
label_desc: Use image node_id 9 for calling a global function with example usage: test_parcel_analysis_error() without return types