def heading(headingtext, headinglevel, lang='en'):
    lmap = {'en': 'Heading', 'it': 'Titolo'}
    # Make our elements
    paragraph = makeelement('p')
    pr = makeelement('pPr')
    pStyle = makeelement(
        'pStyle', attributes={'val': lmap[lang]+str(headinglevel)})
    run = makeelement('r')
    text = makeelement('t', tagtext=headingtext)
    # Add the text the run, and the run to the paragraph
    pr.append(pStyle)
    run.append(text)
    paragraph.append(pr)
    paragraph.append(run)
    # Return the combined paragraph
    return paragraph
Set value in document. **Avoid**
dataset/ETHPy150Open clips/pattern/pattern/web/docx/docx.py/heading--crossover with--dataset/ETHPy150Open frappe/frappe/frappe/database.py/Database.set