class_docstr: Thread that logs events. Copied from
  https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/summary/writer/event_file_writer.py#L133
class_docstr_tok: ["Thread","that","logs","events",".","Copied","from","https",":","\/\/github.com\/tensorflow\/tensorflow\/blob\/master\/tensorflow\/python\/summary\/writer\/event_file_writer.py","#","L133"]
code: def run(self):
      while True:
          event = self._queue.get()
          if event is self._sentinel_event:
              self._queue.task_done()
              break
          try:
              self._ev_writer.write_event(event)
              # Flush the event writer every so often.
              now = time.time()
              if now > self._next_event_flush_time:
                  self._ev_writer.flush()
                  # Do it again in two minutes.
                  self._next_event_flush_time = now + self._flush_secs
          finally:
              self._queue.task_done()
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import logging
  import os.path
  import socket
  import threading
  import time
  import six
  from .proto import event_pb2
  from .record_writer import RecordWriter
label_desc: Use image node_id 2 for calling the _EventLoggerThread obj's underlying member method code with example usage: obj.run() without return types