class_docstr: Base observer.
class_docstr_tok: ["Base","observer","."]
docstr: Removes a handler for the given watch.
  
  :param event_handler:
      An event handler instance that has appropriate event handling
      methods which will be called by the observer in response to
      file system events.
  :type event_handler:
      :class:`watchdog.events.FileSystemEventHandler` or a subclass
  :param watch:
      The watch to remove a handler for.
  :type watch:
      An instance of :class:`ObservedWatch` or a subclass of
      :class:`ObservedWatch`
docstr_tok: ["Removes","a","handler","for","the","given","watch",".",":","param","event_handler",":","An","event","handler","instance","that","has","appropriate","event","handling","methods","which","will","be","called","by","the","observer","in","response","to","file","system","events",".",":","type","event_handler",":",":","class",":","`","watchdog.events.FileSystemEventHandler","`","or","a","subclass",":","param","watch",":","The","watch","to","remove","a","handler","for",".",":","type","watch",":","An","instance","of",":","class",":","`","ObservedWatch","`","or","a","subclass","of",":","class",":","`","ObservedWatch","`"]
code: def remove_handler_for_watch(self, event_handler, watch):
      """Removes a handler for the given watch.
  
      :param event_handler:
          An event handler instance that has appropriate event handling
          methods which will be called by the observer in response to
          file system events.
      :type event_handler:
          :class:`watchdog.events.FileSystemEventHandler` or a subclass
      :param watch:
          The watch to remove a handler for.
      :type watch:
          An instance of :class:`ObservedWatch` or a subclass of
          :class:`ObservedWatch`
      """
      with self._lock:
          self._handlers[watch].remove(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 11 for calling the BaseObserver obj's underlying member method code with example usage: obj.remove_handler_for_watch(event_handler, watch) without return types