<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def emit(self, name, *args, **kwargs):
 """Dispatches an event to any subscribed listeners Note: If a listener returns :obj:`False`, the event will stop dispatching to other listeners. Any other return value is ignored. Args: name (str):
 The name of the :class:`Event` to dispatch *args (Optional):
 Positional arguments to be sent to listeners **kwargs (Optional):
 Keyword arguments to be sent to listeners """

        e = self.__property_events.get(name)
        if e is None:
            e = self.__events[name]
        return e(*args, **kwargs)