code: def sighandler(signals):
      
      def wrap(function):
          set_signal_handlers(signals, function)
  
          @wraps(function)
          def wrapper(*args, **kwargs):
              return function(*args, **kwargs)
  
          return wrapper
  
      return wrap
docs: Sets the decorated function as signal handler of given *signals*.
  
      *signals* can be either a single signal or a list/tuple
      of multiple ones.