code: def _reset(cls):
          
          if os.getpid() != cls._cls_pid:
              cls._cls_pid = os.getpid()
              cls._cls_instances_by_target.clear()
              cls._cls_thread_by_target.clear()
docs: If we have forked since the watch dictionaries were initialized, all
          that has is garbage, so clear it.