def METHOD_NAME(self) -> None:
    """Sets signal handlers for signals in _SIGNALS."""
    for signum in _SIGNALS:
        prev_handler = signal.getsignal(signum)
        # If prev_handler is None, the handler was set outside of Python
        if prev_handler is not None:
            self.prev_handlers[signum] = prev_handler
            signal.signal(signum, self._signal_handler)