code: def disable_event(library, session, event_type, mechanism):
      
      return library.viDisableEvent(session, event_type, mechanism)
docs: Disables notification of the specified event type(s) via the specified mechanism(s).
  
      Corresponds to viDisableEvent function of the VISA library.
  
      :param library: the visa library wrapped by ctypes.
      :param session: Unique logical identifier to a session.
      :param event_type: Logical event identifier.
      :param mechanism: Specifies event handling mechanisms to be disabled.
                        (Constants.VI_QUEUE, .VI_HNDLR, .VI_SUSPEND_HNDLR, .VI_ALL_MECH)
      :return: return value of the library call.
      :rtype: :class:`pyvisa.constants.StatusCode`