class_docstr: Writes bytes to a file.
docstr: Write all the enqueued bytestring before this flush call to disk.
  
  Block until all the above bytestring are written.
docstr_tok: ["Write","all","the","enqueued","bytestring","before","this","flush","call","to","disk",".","Block","until","all","the","above","bytestring","are","written","."]
code: def flush(self):
      """Write all the enqueued bytestring before this flush call to disk.
  
      Block until all the above bytestring are written.
      """
      with self._lock:
          self._check_worker_status()
          if self._closed:
              raise IOError("Writer is closed")
          self._byte_queue.join()
          self._writer.flush()
          # Check the status again in case the background worker thread has
          # failed in the meantime to avoid waiting until the next call to
          # surface the error.
          self._check_worker_status()
  
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 _AsyncWriter obj's underlying member method code with example usage: obj.flush() without return types