class_docstr: Base observer.
class_docstr_tok: ["Base","observer","."]
code: def _add_handler_for_watch(self, event_handler, watch):
      if watch not in self._handlers:
          self._handlers[watch] = set()
      self._handlers[watch].add(event_handler)
  
imports: from __future__ import with_statement
  import threading
  from wandb_watchdog.utils import BaseThread
  from wandb_watchdog.utils.compat import queue
  from wandb_watchdog.utils.bricks import SkipRepeatsQueue
label_desc: Use image node_id 5 for calling the BaseObserver obj's underlying member method code with example usage: obj._add_handler_for_watch(event_handler, watch) without return types