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"]
code: def __del__(self):
      self.close()
  
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 EventsWriter obj's underlying member method code with example usage: obj.__del__() without return types