code: def ttest(x):
      """Returns the t-test for each row of the data x"""
      from ..group.onesample import stat
  
      t = stat(x.T, id="student", axis=0)
      return np.squeeze(t)
  
imports: import numpy
  from nipy.io.nibcompat import get_affine
  from nipy.labs.spatial_models.discrete_domain import grid_domain_from_binary_array
label_desc: Use image node_id 8 for calling a global function with example usage: ttest(x) and returns: np