def METHOD_NAME(component):
    emails = get_emails_from_topic(component["topic_id"])
    component_event = get_component_event(component, emails)
    if component_event:
        send_events([component_event])