code: def _register_watcher(self, filepath, module_name):
      global PathWatcher
      if PathWatcher is None:
          PathWatcher = get_default_path_watcher_class()
  
      if PathWatcher is NoOpPathWatcher:
          return
  
      try:
          wm = WatchedModule(
              watcher=PathWatcher(filepath, self.on_file_changed),
              module_name=module_name,
          )
      except PermissionError:
          # If you don't have permission to read this file, don't even add it
          # to watchers.
          return
  
      self._watched_modules[filepath] = wm
  
imports: import collections
  import os
  import sys
  import types
  from typing import Callable, Dict, List, Optional, Set
  from streamlit import config, file_util
  from streamlit.folder_black_list import FolderBlackList
  from streamlit.logger import get_logger
  from streamlit.source_util import get_pages
  from streamlit.watcher.path_watcher import NoOpPathWatcher, get_default_path_watcher_class
label_desc: Use image node_id 6 for calling the LocalSourcesWatcher obj's underlying member method code with example usage: obj._register_watcher(filepath, module_name) without return types