human
Complete this python program:
def check_messages(*messages):
assistant
#Here is the Python code you requested.

    """decorator to store messages that are handled by a checker method
    """
    def store_messages(func):
        func.checks_msgs = messages
        return func
    return store_messages