code: def _SyntheticSequence(self, duration, note):
      seq = music_pb2.NoteSequence(total_time=duration)
      testing_lib.add_track_to_sequence(
          seq, 0, [(note, 100, 0, duration)]
      )
      return seq
  
imports: import copy
  import tempfile
  import time
  from magenta.models.onsets_frames_transcription import configs
  from magenta.models.onsets_frames_transcription import constants
  from magenta.models.onsets_frames_transcription import data
  from note_seq import audio_io
  from note_seq import sequences_lib
  from note_seq import testing_lib
  from note_seq.protobuf import music_pb2
  import numpy
  import tensorflow.compat.v1
label_desc: Use image node_id 5 for calling the DataTest obj's underlying member method code with example usage: obj._SyntheticSequence(duration, note) and returns: seq