class_docstr: Test EventBasedPathWatcher.
code: def tearDown(self):
      fo = event_based_path_watcher._MultiPathWatcher.get_singleton()
      fo._observer.start.reset_mock()
      fo._observer.schedule.reset_mock()
  
      self.observer_class_patcher.stop()
      self.util_patcher.stop()
  
file_path: streamlit/lib/tests/streamlit/watcher/event_based_path_watcher_test.py
imports: import unittest
  from unittest import mock
  from watchdog import events
  from streamlit.watcher import event_based_path_watcher
label_desc: Use image node_id 2 for calling the EventBasedPathWatcherTest obj's underlying member method code with example usage: obj.tearDown() without return types