def check_messages(*messages):
 def store_messages(func):
  func.checks_msgs = messages
  return func
 return store_messages

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