class_docstr: A debugpy message queue.
class_docstr_tok: ["A","debugpy","message","queue","."]
docstr: Init the queue.
docstr_tok: ["Init","the","queue","."]
code: def __init__(self, event_callback, log):
      """Init the queue."""
      self.tcp_buffer = ""
      self._reset_tcp_pos()
      self.event_callback = event_callback
      self.message_queue: Queue[t.Any] = Queue()
      self.log = log
  
imports: import os
  import re
  import sys
  import typing
  from pathlib import Path
  import zmq
  from IPython.core.getipython import get_ipython
  from IPython.core.inputtransformer2 import leading_empty_lines
  from tornado.locks import Event
  from tornado.queues import Queue
  from zmq.utils import jsonapi
  from .compiler import get_file_name, get_tmp_directory, get_tmp_hash_seed
label_desc: Use image node_id 1 to create a new DebugpyMessageQueue object  with example: obj = DebugpyMessageQueue(event_callback, log)