code: def unregister_listener(self, listener):
          
          if not isinstance(listener, IEventListener):
              raise TypeError("listener can only be an instance of type IEventListener")
          self._call("unregisterListener",
                       in_p=[listener])
docs: Unregister an event listener. If listener is passive, and some waitable events are still
          in queue they are marked as processed automatically.
  
          in listener of type :class:`IEventListener`
              Listener to unregister.