code: def testCaptureSequence_StopSignal(self):
      start_time = 1.0
  
      threading.Timer(0.1, self.send_capture_messages).start()
  
      captured_seq = self.midi_hub.capture_sequence(
          120,
          start_time,
          stop_signal=midi_hub.MidiSignal(
              type="control_change", control=1
          ),
      )
  
      expected_seq = music_pb2.NoteSequence()
      expected_seq.tempos.add(qpm=120)
      expected_seq.total_time = 6.0
      testing_lib.add_track_to_sequence(
          expected_seq,
          0,
          [Note(1, 64, 2, 5), Note(2, 64, 3, 4), Note(3, 64, 4, 6)],
      )
      self.assertProtoEquals(captured_seq, expected_seq)
  
imports: import collections
  import queue
  import threading
  import time
  from magenta.common import concurrency
  from magenta.interfaces.midi import midi_hub
  import mido
  from note_seq import testing_lib
  from note_seq.protobuf import music_pb2
  import tensorflow.compat.v1
label_desc: Use image node_id 12 for calling the MidiHubTest obj's underlying member method code with example usage: obj.testCaptureSequence_StopSignal() without return types