class_docstr: Extracts drum tracks from a quantized NoteSequence.
class_docstr_tok: ["Extracts","drum","tracks","from","a","quantized","NoteSequence","."]
code: def transform(self, input_object):
      quantized_sequence = input_object
      try:
          # pylint has a false positive error on this method call for some reason.
          # pylint:disable=redundant-keyword-arg
          drum_tracks, stats = extract_drum_tracks(
              quantized_sequence,
              min_bars=self._min_bars,
              max_steps_truncate=self._max_steps,
              gap_bars=self._gap_bars,
          )
          # pylint:enable=redundant-keyword-arg
      except events_lib.NonIntegerStepsPerBarError as detail:
          tf.logging.warning("Skipped sequence: %s", detail)
          drum_tracks = []
          stats = [statistics.Counter("non_integer_steps_per_bar", 1)]
      self._set_stats(stats)
      return drum_tracks
  
file_path: magenta/magenta/pipelines/drum_pipelines.py
imports: from magenta.pipelines import pipeline
  from magenta.pipelines import statistics
  from note_seq import drums_lib
  from note_seq import DrumTrack
  from note_seq import events_lib
  from note_seq import sequences_lib
  from note_seq.protobuf import music_pb2
  import tensorflow.compat.v1
label_desc: Use image node_id 2 for calling the DrumsExtractor obj's underlying member method code with example usage: obj.transform(input_object) and returns: drum_tracks