class_docstr: Convert between performance event indices and (filenames of) MIDI files.
class_docstr_tok: ["Convert","between","performance","event","indices","and","(","filenames","of",")","MIDI","files","."]
code: def num_reserved_ids(self):
      return text_encoder.NUM_RESERVED_TOKENS
  
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 2 for calling the MidiPerformanceEncoder obj's underlying member method code with example usage: obj.num_reserved_ids() and returns: text_encoder