code: def testPolyRNNPipeline(self):
      note_sequence = magenta.common.testing_lib.parse_test_proto(
          note_seq.NoteSequence,
          """
          time_signatures: {
            numerator: 4
            denominator: 4}
          tempos: {
            qpm: 120}""",
      )
      note_seq.testing_lib.add_track_to_sequence(
          note_sequence,
          0,
          [
              (36, 100, 0.00, 2.0),
              (40, 55, 2.1, 5.0),
              (44, 80, 3.6, 5.0),
              (41, 45, 5.1, 8.0),
              (64, 100, 6.6, 10.0),
              (55, 120, 8.1, 11.0),
              (39, 110, 9.6, 9.7),
              (53, 99, 11.1, 14.1),
              (51, 40, 12.6, 13.0),
              (55, 100, 14.1, 15.0),
              (54, 90, 15.6, 17.0),
              (60, 100, 17.1, 18.0),
          ],
      )
  
      pipeline_inst = polyphony_rnn_pipeline.get_pipeline(
          min_steps=80,  # 5 measures
          max_steps=512,
          eval_ratio=0,
          config=self.config,
      )
      result = pipeline_inst.transform(note_sequence)
      self.assertTrue(len(result["training_poly_tracks"]))
  
file_path: magenta/magenta/models/polyphony_rnn/polyphony_rnn_create_dataset_test.py
imports: import magenta
  from magenta.contrib import training
  from magenta.models.polyphony_rnn import polyphony_encoder_decoder
  from magenta.models.polyphony_rnn import polyphony_rnn_pipeline
  from magenta.models.shared import events_rnn_model
  import note_seq
  import note_seq.testing_lib
  import tensorflow.compat.v1
label_desc: Use image node_id 2 for calling the PolySeqPipelineTest obj's underlying member method code with example usage: obj.testPolyRNNPipeline() without return types