class_docstr: Class to implement image list interface for FMRI time series
  
  Allows metadata such as volume and slice times
docstr: If index is an index, return self.list[index], an Image
  else return an FmriImageList with images=self.list[index].
docstr_tok: ["If","index","is","an","index",",","return","self.list","[","index","]",",","an","Image","else","return","an","FmriImageList","with","images=self.list","[","index","]","."]
code: def __getitem__(self, index):
      """
      If index is an index, return self.list[index], an Image
      else return an FmriImageList with images=self.list[index].
      """
      if type(index) is int:
          return self.list[index]
      return self.__class__(
          images=self.list[index],
          volume_start_times=self.volume_start_times[index],
          slice_times=self.slice_times,
      )
  
file_path: nipy/nipy/modalities/fmri/fmri.py
imports: import numpy
  from ...core.api import ImageList
label_desc: Use image node_id 2 for calling the FmriImageList obj's underlying member method code with example usage: obj.__getitem__(index) and returns: self, self