def __getitem__(self, key):
        style_elm = self._element.get_by_name(BabelFish.ui2internal(key))
        if style_elm is not None:
            return StyleFactory(style_elm)

        style_elm = self._element.get_by_id(key)
        if style_elm is not None:
            msg = (
                'style lookup by style_id is deprecated. Use style name as '
                'key instead.'
            )
            warn(msg, UserWarning)
            return StyleFactory(style_elm)

        raise KeyError("no style with name '%s'" % key)
Fits the Ledoit-Wolf shrunk covariance model
dataset/ETHPy150Open python-openxml/python-docx/docx/styles/styles.py/Styles.__getitem__--crossover with--dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/covariance/shrunk_covariance_.py/LedoitWolf.fit