

@ensure_tag(['p'])
def is_natural_header(el, styles_dict):
    w_namespace = get_namespace(el, 'w')
    pPr = el.find(('%spPr' % style_id))
    if (pPr is None):
        return False
    pStyle = pPr.find(('%spStyle' % w_namespace))
    if (pStyle is None):
        return False
    style_id = pStyle.get(('%sval' % w_namespace))
    if ((style_id in styles_dict) and ('header' in styles_dict[style_id]) and styles_dict[style_id]['header']):
        return styles_dict[style_id]['header']

dataset/ETHPy150Open PolicyStat/docx2html/docx2html/core.py is_natural_header/VarMisuse@38/58 `w_namespace`->`style_id`