code: def _reset_em(self):
          
          self.em = _ExtendedManager(self.addr, self.authkey, mode=self.mode, start=False)
          self.em.start()
          self._set_shared_instances()
docs: Resets self.em and the shared instances.