def trigger_event(self, event, *args, **kwargs):
        for event_class, event_callbacks in six.iteritems(self._event_callbacks):
            if not isinstance(self, event_class):
                continue
            for callback in event_callbacks.get(event, []):
                try:
                    # callbacks are protected
                    callback(*args, **kwargs)
                except KeyboardInterrupt:
                    return
                except BaseException:
                    logger.exception("Error in event callback for %r", event)
Returns a prefix for the token to store in the session so we can hold
dataset/ETHPy150Open spotify/luigi/luigi/task.py/Task.trigger_event--crossover with--dataset/ETHPy150Open pennersr/django-allauth/allauth/socialaccount/providers/oauth/client.py/get_token_prefix