def METHOD_NAME(signal_num):
    # once Python 3.8 is the minimum supported version,
    # signal.strsignal can be used here
    signals = type(signal.SIGINT)
    try:
        signal_str = f'{signals(signal_num).name} ({signal_num})'
    except ValueError:
        signal_str = f'{signal_num}'
    return f'Terminated by signal {signal_str}'