<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _reset_em(self):
 """Resets self.em and the shared instances."""

        self.em = _ExtendedManager(self.addr, self.authkey, mode=self.mode, start=False)
        self.em.start()
        self._set_shared_instances()