class_docstr: Load beat times from file or handle.
class_docstr_tok: ["Load","beat","times","from","file","or","handle","."]
docstr: Load the beats from file (handle) or read them from STDIN.
code: def process(self, data=None, **kwargs):
      """
      Load the beats from file (handle) or read them from STDIN.
  
      """
      # pylint: disable=unused-argument
      if self.mode == "single":
          return self.process_single()
      elif self.mode == "batch":
          return self.process_batch(data)
      else:
          raise ValueError("don't know how to obtain the beats")
  
imports: from __future__ import absolute_import, division, print_function
  import sys
  import warnings
  import numpy
  from .beats import threshold_activations
  from .beats_hmm import BarStateSpace, BarTransitionModel, GMMPatternTrackingObservationModel, MultiPatternStateSpace, MultiPatternTransitionModel, RNNBeatTrackingObservationModel, RNNDownBeatTrackingObservationModel
  from ..ml.hmm import HiddenMarkovModel
  from ..processors import ParallelProcessor, Processor, SequentialProcessor
  from ..utils import string_types
label_desc: Use image node_id 2 for calling the LoadBeatsProcessor obj's underlying member method code with example usage: obj.process(data) and returns: self, self