def StyleFactory(style_elm):
    style_cls = {
        WD_STYLE_TYPE.PARAGRAPH: _ParagraphStyle,
        WD_STYLE_TYPE.CHARACTER: _CharacterStyle,
        WD_STYLE_TYPE.TABLE:     _TableStyle,
        WD_STYLE_TYPE.LIST:      _NumberingStyle
    }[style_elm.type]

    return style_cls(style_elm)
Get private images which match the given name.
dataset/ETHPy150Open python-openxml/python-docx/docx/styles/style.py/StyleFactory--crossover with--dataset/ETHPy150Open softlayer/softlayer-python/SoftLayer/managers/image.py/ImageManager._get_ids_from_name_private