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","."]
docstr: Transform a sequence of event indices into a performance MIDI file.
  
  Args:
    ids: List of performance event indices.
    strip_extraneous: Whether to strip EOS and padding from the end of `ids`.
  
  Returns:
    Path to the temporary file where the MIDI was saved.
code: def decode(self, ids, strip_extraneous=False):
      """Transform a sequence of event indices into a performance MIDI file.
  
      Args:
        ids: List of performance event indices.
        strip_extraneous: Whether to strip EOS and padding from the end of `ids`.
  
      Returns:
        Path to the temporary file where the MIDI was saved.
      """
      ns = self.decode_to_note_sequence(
          ids, strip_extraneous=strip_extraneous
      )
  
      _, tmp_file_path = tempfile.mkstemp("_decode.mid")
      note_seq.sequence_proto_to_midi_file(ns, tmp_file_path)
  
      return tmp_file_path
  
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 6 for calling the MidiPerformanceEncoder obj's underlying member method code with example usage: obj.decode(ids, strip_extraneous) and returns: tmp_file_path