<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def prime_event(event, source, **kwargs):
 """ Returns the event ready to be triggered. If the given event is a string an Event instance is generated from it. """

    if not isinstance(event, Event):
        event = Event(event, source=source, **kwargs)

    return event