class_docstr: Writes `Event` protocol buffers to an event file.
docstr: Flushes the event file to disk.
docstr_tok: ["Flushes","the","event","file","to","disk","."]
code: def flush(self):
      """Flushes the event file to disk."""
      with self._lock:
          self._num_outstanding_events = 0
          self._py_recordio_writer.flush()
      return True
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import socket
  import threading
  import time
  import multiprocessing
  import queue
  from .proto import event_pb2
  from .record_writer import RecordWriter, directory_check
label_desc: Use image node_id 4 for calling the EventsWriter obj's underlying member method code with example usage: obj.flush() and returns: True