code: def test_F_contrast_calues():
      mulm, n, p, q = ar1_glm(n=1)
      cval = np.eye(q)[:3]
      con = mulm.contrast(cval)
      F_ref = list(mulm.results_.values()).pop().Fcontrast(cval).F
      # Note that the values are not strictly equal,
      # this seems to be related to a bug in Mahalanobis
      assert_almost_equal(np.ravel(con.stat()), F_ref, 3)
  
imports: import numpy
  import pytest
  from nibabel import Nifti1Image, load, save
  from numpy.testing import assert_almost_equal, assert_array_almost_equal, assert_array_equal
  from nipy.io.nibcompat import get_affine
  from nipy.testing import funcfile
  from nipy.testing.decorators import if_example_data
  from ..glm import FMRILinearModel, GeneralLinearModel, data_scaling
label_desc: Use image node_id 24 for calling a global function with example usage: test_F_contrast_calues() without return types