class_docstr: This class is adapted with modifications in support of the MXNet NDArray types from
  https://github.com/lanpa/tensorboard-pytorch/blob/master/tensorboardX/writer.py.
  The `SummaryWriter` class provides a high-level api to create an event file in a
  given directory and add summaries and events to it. This class writes data to the
  event file asynchronously.
  This class is a wrapper of the FileWriter class. It's recommended that users use
  the APIs of this class to log MXNet data for visualization as they are directly compatible with
  the MXNet data types.
  
  Examples
  --------
  >>> data = mx.nd.random.uniform(size=(10, 10))
  >>> with SummaryWriter(logdir='logs') as sw:
  >>>     sw.add_histogram(tag='my_hist', values=data, global_step=0, bins=100)
docstr: Flushes pending events to the file.
docstr_tok: ["Flushes","pending","events","to","the","file","."]
code: def flush(self):
      """Flushes pending events to the file."""
      for fw in self._all_writers.values():
          fw.flush()
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import time
  import json
  import os
  import logging
  from .proto import event_pb2
  from .proto import summary_pb2
  from .event_file_writer import EventFileWriter
  from .summary import scalar_summary, histogram_summary, image_summary, audio_summary
  from .summary import text_summary, pr_curve_summary, _net2pb
  from .utils import _save_embedding_tsv, _make_sprite_image, _make_metadata_tsv
  from .utils import _add_embedding_config, _make_numpy_array, _get_embedding_dir
  from .utils import _is_2D_matrix
label_desc: Use image node_id 18 for calling the SummaryWriter obj's underlying member method code with example usage: obj.flush() without return types