code: def get_pianoroll_encoder_decoder(hparams):
      encoder_decoder = PianorollEncoderDecoder(
          shortest_duration=hparams.shortest_duration,
          min_pitch=hparams.min_pitch,
          max_pitch=hparams.max_pitch,
          separate_instruments=hparams.separate_instruments,
          num_instruments=hparams.num_instruments,
          quantization_level=hparams.quantization_level,
      )
      return encoder_decoder
  
file_path: magenta/magenta/models/coconet/lib_pianoroll.py
imports: import numpy
  import pretty_midi
  import tensorflow.compat.v1
label_desc: Use image node_id 1 for calling a global function with example usage: get_pianoroll_encoder_decoder(hparams) and returns: encoder_decoder