class_docstr: Observer thread that schedules watching directories and dispatches
  calls to event handlers.
class_docstr_tok: ["Observer","thread","that","schedules","watching","directories","and","dispatches","calls","to","event","handlers","."]
code: def __init__(
      self, timeout=DEFAULT_OBSERVER_TIMEOUT, generate_full_events=False
  ):
      if generate_full_events:
          BaseObserver.__init__(
              self, emitter_class=InotifyFullEmitter, timeout=timeout
          )
      else:
          BaseObserver.__init__(
              self, emitter_class=InotifyEmitter, timeout=timeout
          )
  
imports: from __future__ import with_statement
  import os
  import threading
  from .inotify_buffer import InotifyBuffer
  from wandb_watchdog.observers.api import EventEmitter, BaseObserver, DEFAULT_EMITTER_TIMEOUT, DEFAULT_OBSERVER_TIMEOUT
  from wandb_watchdog.events import DirDeletedEvent, DirModifiedEvent, DirMovedEvent, DirCreatedEvent, FileDeletedEvent, FileModifiedEvent, FileMovedEvent, FileCreatedEvent, generate_sub_moved_events, generate_sub_created_events
  from wandb_watchdog.utils import unicode_paths
label_desc: Use image node_id 1 to create a new InotifyObserver object from inherited base classes: BaseObserver with example: obj = InotifyObserver(timeout, generate_full_events)