code: def get_label(self, code):
          
  
          for style in self.styles:
              if style[1] == code:
                  return style[0]
  
          msg = _("Code {code} is invalid.").format(code=code)
          raise ValueError(msg)
docs: Returns string label for given code string
  
          Inverse of get_code
  
          Parameters
          ----------
          code: String
          \tCode string, field 1 of style tuple