code: def data():
      img = load_image(funcfile)
      arr = img.get_fdata()
      # arr = np.rollaxis(arr, 3)
      out = {"nimages": arr.shape[3]}
      out["fmridata"] = arr
      frame = out["fmridata"][..., 0]
      out["mask"] = (frame > 500).astype(np.float64)
      return out
  
imports: import numpy
  import pytest
  from nipy.io.api import load_image
  from nipy.testing import assert_almost_equal, assert_array_almost_equal, funcfile
  from ..pca import pca
label_desc: Use image node_id 1 for calling a global function with example usage: data() and returns: out