class_docstr: File system independent observer that polls a directory to detect changes.
class_docstr_tok: ["File","system","independent","observer","that","polls","a","directory","to","detect","changes","."]
docstr: :param stat: stat function. See ``os.stat`` for details.
  :param listdir: listdir function. See ``os.listdir`` for details.
  :type polling_interval: float
  :param polling_interval: interval in seconds between polling the file system.
docstr_tok: [":","param","stat",":","stat","function",".","See","``","os.stat","``","for","details",".",":","param","listdir",":","listdir","function",".","See","``","os.listdir","``","for","details",".",":","type","polling_interval",":","float",":","param","polling_interval",":","interval","in","seconds","between","polling","the","file","system","."]
code: def __init__(self, stat, listdir, polling_interval=1):
      """
      :param stat: stat function. See ``os.stat`` for details.
      :param listdir: listdir function. See ``os.listdir`` for details.
      :type polling_interval: float
      :param polling_interval: interval in seconds between polling the file system.
      """
      emitter_cls = partial(PollingEmitter, stat=stat, listdir=listdir)
      BaseObserver.__init__(
          self, emitter_class=emitter_cls, timeout=polling_interval
      )
  
file_path: wandb/wandb/vendor/watchdog_0_9_0/wandb_watchdog/observers/polling.py
imports: from __future__ import with_statement
  import os
  import threading
  from functools import partial
  from wandb_watchdog.utils import stat
  from wandb_watchdog.utils.dirsnapshot import DirectorySnapshot, DirectorySnapshotDiff
  from wandb_watchdog.observers.api import EventEmitter, BaseObserver, DEFAULT_OBSERVER_TIMEOUT, DEFAULT_EMITTER_TIMEOUT
  from wandb_watchdog.events import DirMovedEvent, DirDeletedEvent, DirCreatedEvent, DirModifiedEvent, FileMovedEvent, FileDeletedEvent, FileCreatedEvent, FileModifiedEvent
label_desc: Use image node_id 1 to create a new PollingObserverVFS object from inherited base classes: BaseObserver with example: obj = PollingObserverVFS(stat, listdir, polling_interval)