def flush(self):
if self._num_outstanding_events == <NUM_LIT:0> or self._recordio_writer is None:<EOL><INDENT>return<EOL><DEDENT>self._recordio_writer.flush()<EOL>if self._logger is not None:<EOL><INDENT>self._logger.info('<STR_LIT>', self._num_outstanding_events,<EOL>'<STR_LIT>' if self._num_outstanding_events == <NUM_LIT:1> else '<STR_LIT>')<EOL><DEDENT>self._num_outstanding_events = <NUM_LIT:0><EOL>
Flushes the event file to disk.