class_docstr: Convert melody sequences to integer indices, abstract base class.
class_docstr_tok: ["Convert","melody","sequences","to","integer","indices",",","abstract","base","class","."]
code: def _encode_melody_events(self, melody):
      return [
          self._encoding.encode_event(event) + self.num_reserved_ids
          for event in melody
      ]
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tempfile
  import note_seq
  from note_seq import performance_lib
  import pygtrie
  from tensor2tensor.data_generators import text_encoder
label_desc: Use image node_id 3 for calling the TextMelodyEncoderBase obj's underlying member method code with example usage: obj._encode_melody_events(melody) and returns: unknown