code: def __init__(self):
      super(MockMidiPort, self).__init__()
      self.message_queue = queue.Queue()
  
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 1 to create a new MockMidiPort object from inherited base classes: mido.ports with example: obj = MockMidiPort()