code: def prime_event(event, source, **kwargs):
      
      if not isinstance(event, Event):
          event = Event(event, source=source, **kwargs)
  
      return event
docs: Returns the event ready to be triggered.
  
      If the given event is a string an Event instance is generated from it.