def METHOD_NAME(msg_class):
    cls_name = msg_class.get('name').title()
    label = " {#" + msg_class.get('name').upper() + "_CLASS}"
    s = "# {0} Messages # {1}\n\n".format(cls_name, label)
    for m in msg_class.findall("./message"):
        s +=\
            print_message(m)
    return s