code: def axis0_generator(data, slicers=None):
      """Takes array-like `data`, returning slices over axes > 0
  
      This function takes an array-like object `data` and yields tuples of slicing
      thing and slices like::
  
          [slicer, np.asarray(data)[:,slicer] for slicer in slicer]
  
      which in the default (`slicers` is None) case, boils down to::
  
          [i, np.asarray(data)[:,i] for i in range(data.shape[1])]
  
      This can be used to get arrays of time series out of an array if the time
      axis is axis 0.
  
      Parameters
      ----------
      data : array-like
         object such that ``arr = np.asarray(data)`` returns an array of
         at least 2 dimensions.
      slicers : None or sequence
         sequence of objects that can be used to slice into array ``arr``
         returned from data.  If None, default is ``range(data.shape[1])``
      """
      arr = np.asarray(data)
      if slicers is None:
          slicers = range(arr.shape[1])
      for slicer in slicers:
          yield slicer, arr[:, slicer]
  
file_path: nipy/nipy/modalities/fmri/fmri.py
imports: import numpy
  from ...core.api import ImageList
label_desc: Use image node_id 1 for calling a global function with example usage: axis0_generator(data, slicers) without return types