code: def test_labels1():
      img = load_image(funcfile)
      data = img.get_fdata()
      parcelmap = Image(
          img[0].get_fdata(), AfT("kji", "zyx", np.eye(4))
      )
      parcelmap = (parcelmap.get_fdata() * 100).astype(np.int32)
      v = 0
      for i, d in axis0_generator(data, parcels(parcelmap)):
          v += d.shape[1]
      assert v == parcelmap.size
  
file_path: nipy/nipy/modalities/fmri/tests/test_fmri.py
imports: import gc
  import numpy
  import pytest
  from nipy.core.api import AffineTransform
  from nipy.core.api import Image, parcels
  from nipy.io.api import load_image, save_image
  from nipy.modalities.fmri.api import FmriImageList, axis0_generator
  from nipy.testing import funcfile
label_desc: Use image node_id 4 for calling a global function with example usage: test_labels1() without return types