<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update(self, path, verbose=False):
 """ if the path isn't being watched, start watching it if it is, stop watching it """

        if path in self._by_path:
            self.remove(path)
        else:
            self.add(path, verbose)