code: def suppress_keyboard_interrupt_message():
      
      old_excepthook = sys.excepthook
  
      def new_hook(type, value, traceback):
          if type != KeyboardInterrupt:
              old_excepthook(type, value, traceback)
          else:
              sys.exit(130)
  
      sys.excepthook = new_hook
docs: Register a new excepthook to suppress KeyboardInterrupt
      exception messages, and exit with status code 130.