def _write_named_styles(self):
        styles = self.wb._named_styles
        cell_style_xfs = SubElement(self._root, 'cellStyleXfs', count="%d" % len(styles))

        for style in self.wb._named_styles.values():
            attrs = {}

            attrs['fontId'] =  str(self.wb._fonts.add(style.font))
            attrs['borderId'] = str(self.wb._borders.add(style.border))
            attrs['fillId'] =  str(self.wb._fills.add(style.fill))
            fmt = style.number_format
            if BUILTIN_FORMATS_REVERSE in fmt:
                fmt = BUILTIN_FORMATS_REVERSE[fmt]
            else:
                fmt = self.wb._number_formats.add(style.number_format) + 164
            attrs['numFmtId'] = str(fmt)

            SubElement(cell_style_xfs, 'xf', attrs)
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/openpyxl-2.3.0-b2/openpyxl/writer/styles.py/StyleWriter._write_named_styles/swapped operands of `in`