def get_module_id_from_event(event):
    """
    Helper function to get the module_id from an EventHub message
    """
    if "iothub-connection-module_id" in event.message.annotations:
        return event.message.annotations["iothub-connection-module-id".encode()].decode()
    else:
        return None