code: def _check_pid(self, allow_reset=False):
          
          if not self.pid == current_process().pid:
              if allow_reset:
                  self.reset()
              else:
                  raise RuntimeError("Forbidden operation in multiple processes")
docs: Check process id to ensure integrity, reset if in new process.