code: def unregister_listener(self, listener):
          
          listener_id = hashable_identity(listener)
          self._listeners.pop(listener_id, None)
docs: Remove a listener callback added with register_listener().
  
          Parameters
          ----------
          listener : function
              Reference to the callback function that should be removed