def METHOD_NAME(message):
    label = "{#" + message.get('name') + "}"
    s = "## {0} (ID {1}) ## {2}\n\n".format(message.get('name'), message.get('id'), label)
    desc = message.find('description')
    if desc is not None:
        s += desc.text.strip() + "\n\n"
    fields = message.findall('./field')
    if fields:
        s += "Field name | Type | Unit/Values | Description |\n"
        s += "-----------|------|-------------|-------------|\n"
    else:
        s += "message has no fields\n"
    for f in fields:
        s += print_field(f)
    s += "\n\n"
    return s