class_docstr: Writes `Event` protocol buffers to an event file. This class is ported from
  EventsWriter defined in
  https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/util/events_writer.cc
class_docstr_tok: ["Writes","`","Event","`","protocol","buffers","to","an","event","file",".","This","class","is","ported","from","EventsWriter","defined","in","https",":","\/\/github.com\/tensorflow\/tensorflow\/blob\/master\/tensorflow\/core\/util\/events_writer.cc"]
docstr: Events files have a name of the form
  '/file/path/events.out.tfevents.[timestamp].[hostname][file_suffix]'
docstr_tok: ["Events","files","have","a","name","of","the","form","'\/file\/path\/events.out.tfevents.","[","timestamp","]",".","[","hostname","]","[","file_suffix","]","'"]
code: def __init__(self, file_prefix, verbose=True):
      """
      Events files have a name of the form
      '/file/path/events.out.tfevents.[timestamp].[hostname][file_suffix]'
      """
      self._file_prefix = file_prefix
      self._file_suffix = ""
      self._filename = None
      self._recordio_writer = None
      self._num_outstanding_events = 0
      self._logger = None
      if verbose:
          self._logger = logging.getLogger(__name__)
          self._logger.setLevel(logging.INFO)
  
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 1 to create a new EventsWriter object from inherited base classes: object with example: obj = EventsWriter(file_prefix, verbose)