def METHOD_NAME(request, msgs):
    for add_message_func, message in msgs:
        # add_message_func is a function like django.contrib.messages.error
        # message is a string
        add_message_func(request, message)