code: def test_maxminmean_values(tpl_img):
      # loaded array values from SPM
      y = tpl_img.get_fdata()
      assert y.shape == tuple(tpl_img.shape)
      assert_array_almost_equal(y.max(), 1.000000059)
      assert_array_almost_equal(y.mean(), 0.273968048)
      assert y.min() == 0.0
  
imports: from os.path import dirname
  from os.path import join
  import nibabel
  import numpy
  import pytest
  from nibabel import Nifti1Header
  from nibabel.filebasedimages import ImageFileError
  from nibabel.spatialimages import HeaderDataError
  from nibabel.tests.test_round_trip import big_bad_ulp
  from nipy.core.api import AffineTransform
  from nipy.core.api import Image, vox2mni
  from nipy.testing import anatfile, assert_almost_equal, assert_array_almost_equal, assert_array_equal, funcfile
  from nipy.testing.decorators import if_templates
  from nipy.utils import DataError, templates
  from ..api import as_image, load_image, save_image
label_desc: Use image node_id 3 for calling a global function with example usage: test_maxminmean_values(tpl_img) without return types