class_docstr: A DirectoryWatcher wraps a loader to load from a sequence of paths.
  
  A loader reads a path and produces some kind of values as an iterator. A
  DirectoryWatcher takes a directory, a factory for loaders, and optionally a
  path filter and watches all the paths inside that directory.
  
  This class is only valid under the assumption that only one path will be
  written to by the data source at a time and that once the source stops writing
  to a path, it will start writing to a new path that's lexicographically
  greater and never come back. It uses some heuristics to check whether this is
  true based on tracking changes to the files' sizes, but the check can have
  false negatives. However, it should have no false positives.
docstr: Returns whether any out-of-order writes have been detected.
  
  Out-of-order writes are only checked as part of the Load() iterator. Once an
  out-of-order write is detected, this function will always return true.
  
  Note that out-of-order write detection is not performed on GCS paths, so
  this function will always return false.
  
  Returns:
    Whether any out-of-order write has ever been detected by this watcher.
docstr_tok: ["Returns","whether","any","out-of-order","writes","have","been","detected",".","Out-of-order","writes","are","only","checked","as","part","of","the","Load","(",")","iterator",".","Once","an","out-of-order","write","is","detected",",","this","function","will","always","return","true",".","Note","that","out-of-order","write","detection","is","not","performed","on","GCS","paths",",","so","this","function","will","always","return","false",".","Returns",":","Whether","any","out-of-order","write","has","ever","been","detected","by","this","watcher","."]
code: def OutOfOrderWritesDetected(self):
      """Returns whether any out-of-order writes have been detected.
  
      Out-of-order writes are only checked as part of the Load() iterator. Once an
      out-of-order write is detected, this function will always return true.
  
      Note that out-of-order write detection is not performed on GCS paths, so
      this function will always return false.
  
      Returns:
        Whether any out-of-order write has ever been detected by this watcher.
      """
      return self._ooo_writes_detected
  
file_path: tensorboard/tensorboard/backend/event_processing/directory_watcher.py
imports: import bisect
  from tensorboard.backend.event_processing import io_wrapper
  from tensorboard.compat import tf
  from tensorboard.util import io_util
  from tensorboard.util import tb_logging
label_desc: Use image node_id 4 for calling the DirectoryWatcher obj's underlying member method code with example usage: obj.OutOfOrderWritesDetected() and returns: self