<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def unregister_listener(self, listener):
 """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. """

        if not isinstance(listener, IEventListener):
            raise TypeError("listener can only be an instance of type IEventListener")
        self._call("unregisterListener",
                     in_p=[listener])