class_docstr: Our base class for representing an html element along with a cascading style.
  The element is created along with a parent so that the StyleDict that we store
  can point to the parent's StyleDict.
docstr: Turn the css styles for this element into an openpyxl NamedStyle.
docstr_tok: ["Turn","the","css","styles","for","this","element","into","an","openpyxl","NamedStyle","."]
code: def style(self):
      """
      Turn the css styles for this element into an openpyxl NamedStyle.
      """
      if not self._style_cache:
          self._style_cache = style_dict_to_named_style(
              self.style_dict, number_format=self.number_format
          )
      return self._style_cache
  
imports: from openpyxl.cell import cell
  from openpyxl.styles import Font, Alignment, PatternFill, NamedStyle, Border, Side, Color
  from openpyxl.styles.fills import FILL_SOLID
  from openpyxl.styles.numbers import FORMAT_CURRENCY_USD_SIMPLE, FORMAT_PERCENTAGE
  from openpyxl.styles.colors import BLACK
label_desc: Use image node_id 2 for calling the Element obj's underlying member method code with example usage: obj.style() and returns: self