def format_heading(level, text):
underlining = ['<STR_LIT:=>', '<STR_LIT:->', '<STR_LIT:+>', '<STR_LIT>'][level - <NUM_LIT:1>] * len(text)<EOL>return '<STR_LIT>' % (text, underlining)<EOL>
Create a heading of <level> [1, 2 or 3 supported].