class_docstr: ActivationsProcessor processes a file and returns an Activations instance.
  
  Parameters
  ----------
  mode : {'r', 'w', 'in', 'out', 'load', 'save'}
      Mode of the Processor: read/write.
  fps : float, optional
      Frame rate of the activations (if set, it overwrites the saved frame
      rate).
  sep : str, optional
      Separator between activation values if saved as text file.
  
  Notes
  -----
  An undefined or empty (“”) separator means that the file should be treated
  as a numpy binary file. Only binary files can store the frame rate of the
  activations.
docstr: Depending on the mode, either loads the data stored in the given file
  and returns it as an Activations instance or save the data to the given
  output.
  
  Parameters
  ----------
  data : str, file handle or numpy array
      Data or file to be loaded (if `mode` is 'r') or data to be saved
      to file (if `mode` is 'w').
  output : str or file handle, optional
      output file (only in write-mode)
  
  Returns
  -------
  :class:`Activations` instance
      :class:`Activations` instance (only in read-mode)
docstr_tok: ["Depending","on","the","mode",",","either","loads","the","data","stored","in","the","given","file","and","returns","it","as","an","Activations","instance","or","save","the","data","to","the","given","output",".","Parameters","--","--","--","--","--","data",":","str",",","file","handle","or","numpy","array","Data","or","file","to","be","loaded","(","if","`","mode","`","is","'","r","'",")","or","data","to","be","saved","to","file","(","if","`","mode","`","is","'","w","'",")",".","output",":","str","or","file","handle",",","optional","output","file","(","only","in","write-mode",")","Returns","--","--","--","-",":","class",":","`","Activations","`","instance",":","class",":","`","Activations","`","instance","(","only","in","read-mode",")"]
code: def process(self, data, output=None, **kwargs):
      """
      Depending on the mode, either loads the data stored in the given file
      and returns it as an Activations instance or save the data to the given
      output.
  
      Parameters
      ----------
      data : str, file handle or numpy array
          Data or file to be loaded (if `mode` is 'r') or data to be saved
          to file (if `mode` is 'w').
      output : str or file handle, optional
          output file (only in write-mode)
  
      Returns
      -------
      :class:`Activations` instance
          :class:`Activations` instance (only in read-mode)
  
      """
      # pylint: disable=arguments-differ
  
      if self.mode in ("r", "in", "load"):
          return Activations.load(data, fps=self.fps, sep=self.sep)
      if self.mode in ("w", "out", "save"):
          # TODO: should we return the data or the Activations instance?
          Activations(data, fps=self.fps).save(output, sep=self.sep)
      else:
          raise ValueError(
              "wrong mode %s; choose {'r', 'w', 'in', 'out', "
              "'load', 'save'}"
          )
      return data
  
imports: from __future__ import absolute_import, division, print_function
  import numpy
  from ..processors import Processor
  from .None import beats, chords, downbeats, key, notes, onsets, tempo
  from .beats import BeatDetectionProcessor, BeatTrackingProcessor, CRFBeatDetectionProcessor, DBNBeatTrackingProcessor, MultiModelSelectionProcessor, RNNBeatProcessor
  from .chords import CNNChordFeatureProcessor, CRFChordRecognitionProcessor, DeepChromaChordRecognitionProcessor
  from .downbeats import RNNDownBeatProcessor, DBNDownBeatTrackingProcessor, PatternTrackingProcessor, RNNBarProcessor, DBNBarTrackingProcessor
  from .key import CNNKeyRecognitionProcessor
  from .notes import CNNPianoNoteProcessor, ADSRNoteTrackingProcessor, NoteOnsetPeakPickingProcessor, NotePeakPickingProcessor, RNNPianoNoteProcessor
  from .onsets import CNNOnsetProcessor, OnsetPeakPickingProcessor, RNNOnsetProcessor, SpectralOnsetProcessor
  from .tempo import TempoEstimationProcessor
label_desc: Use image node_id 2 for calling the ActivationsProcessor obj's underlying member method code with example usage: obj.process(data, output) and returns: data, Activations