def format_heading(level, text):
    underlining = ['=', '-', '~', ][level-1] * len(text)
    return '%s\n%s\n\n' % (text, underlining)
Create a heading of <level> [1, 2 or 3 supported].
dataset/ETHPy150Open Netflix/security_monkey/generate_docs.py/format_heading