<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def _get_signal_event(self, s):
        '''
        Get the event for a signal.

        Checks if the signal has been enabled and raises a
        ``ValueError`` if not.
        '''
        try:
            return self._signal_events[int(s)]
        except KeyError:
            raise ValueError('Signal {} has not been enabled'.format(s))