class_docstr: Thread that processes asynchronous writes for _AsyncWriter.
code: def run(self):
      try:
          self._run()
      except Exception as ex:
          self.exception = ex
          try:
              # In case there's a thread blocked on putting an item into the
              # queue or a thread blocked on flushing, pop all items from the
              # queue to let the foreground thread proceed.
              while True:
                  self._queue.get(False)
                  self._queue.task_done()
          except queue.Empty:
              pass
          raise
  
imports: import os
  import queue
  import socket
  import threading
  import time
  from tensorboard.compat import tf
  from tensorboard.compat.proto import event_pb2
  from tensorboard.summary.writer.record_writer import RecordWriter
label_desc: Use image node_id 3 for calling the _AsyncWriterThread obj's underlying member method code with example usage: obj.run() without return types