code: def test_f_output_errors():
      # Input matrix checked for size
      match = r"F contrasts should have shape\[1\]=.*, but this has shape\[1\]=.*"
      with pytest.raises(ValueError, match=match):
          RESULTS.Fcontrast([1])
      with pytest.raises(ValueError, match=match):
          RESULTS.Fcontrast([1, 0, 0])
      # And shape
      with pytest.raises(ValueError, match=match):
          RESULTS.Fcontrast(np.array([1, 0])[:, None])
  
file_path: nilearn/nilearn/glm/tests/test_model.py
imports: import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal
  from nilearn.glm import OLSModel
label_desc: Use image node_id 6 for calling a global function with example usage: test_f_output_errors() without return types