docstr: Test server.fileWatcherType
docstr_tok: ["Test","server.fileWatcherType"]
code: def test_config_watcherType(self):
      """Test server.fileWatcherType"""
  
      config.set_option("server.fileWatcherType", "none")
      self.assertEqual(
          local_sources_watcher.get_default_path_watcher_class().__name__,
          "NoOpPathWatcher",
      )
  
      config.set_option("server.fileWatcherType", "poll")
      self.assertEqual(
          local_sources_watcher.get_default_path_watcher_class().__name__,
          "PollingPathWatcher",
      )
  
      config.set_option("server.fileWatcherType", "watchdog")
      self.assertEqual(
          local_sources_watcher.get_default_path_watcher_class().__name__,
          "EventBasedPathWatcher"
          if watchdog_available
          else "NoOpPathWatcher",
      )
  
      config.set_option("server.fileWatcherType", "auto")
      self.assertIsNotNone(
          local_sources_watcher.get_default_path_watcher_class()
      )
  
      if (
          sys.modules["streamlit.watcher.event_based_path_watcher"]
          is not None
      ):
          self.assertEqual(
              local_sources_watcher.get_default_path_watcher_class().__name__,
              "EventBasedPathWatcher",
          )
      else:
          self.assertEqual(
              local_sources_watcher.get_default_path_watcher_class().__name__,
              "PollingPathWatcher",
          )
  
imports: import os
  import sys
  import unittest
  from unittest.mock import MagicMock, patch
  import tests.streamlit.watcher.test_data.dummy_module1
  import tests.streamlit.watcher.test_data.dummy_module2
  import tests.streamlit.watcher.test_data.misbehaved_module
  import tests.streamlit.watcher.test_data.nested_module_child
  import tests.streamlit.watcher.test_data.nested_module_parent
  from streamlit import config
  from streamlit.watcher import local_sources_watcher
  from streamlit.watcher.path_watcher import NoOpPathWatcher, watchdog_available
label_desc: Use image node_id 9 for calling the LocalSourcesWatcherTest obj's underlying member method code with example usage: obj.test_config_watcherType() without return types