'Restores the state of the warnings module to the state
saved by save_warnings_state()'

def restore_warnings_state(self):

    warnings.warn(self._warn_txt, DeprecationWarning, stacklevel=2)
    warnings.filters = self._warnings_state[:]
