code: def __new__(mcs, name, bases, dct):
      obj = type.__new__(mcs, name, bases, dct)
      for token in STANDARD_TYPES:
          if token not in obj.styles:
              obj.styles[token] = ""
  
      def colorformat(text):
          if text in ansicolors:
              return text
          if text[0:1] == "#":
              col = text[1:]
              if len(col) == 6:
                  return col
              elif len(col) == 3:
                  return col[0] * 2 + col[1] * 2 + col[2] * 2
          elif text == "":
              return ""
          assert False, "wrong color format %r" % text
  
      _styles = obj._styles = {}
  
      for ttype in obj.styles:
          for token in ttype.split():
              if token in _styles:
                  continue
              ndef = _styles.get(token.parent, None)
              styledefs = obj.styles.get(token, "").split()
              if not ndef or token is None:
                  ndef = ["", 0, 0, 0, "", "", 0, 0, 0]
              elif "noinherit" in styledefs and token is not Token:
                  ndef = _styles[Token][:]
              else:
                  ndef = ndef[:]
              _styles[token] = ndef
              for styledef in obj.styles.get(token, "").split():
                  if styledef == "noinherit":
                      pass
                  elif styledef == "bold":
                      ndef[1] = 1
                  elif styledef == "nobold":
                      ndef[1] = 0
                  elif styledef == "italic":
                      ndef[2] = 1
                  elif styledef == "noitalic":
                      ndef[2] = 0
                  elif styledef == "underline":
                      ndef[3] = 1
                  elif styledef == "nounderline":
                      ndef[3] = 0
                  elif styledef[:3] == "bg:":
                      ndef[4] = colorformat(styledef[3:])
                  elif styledef[:7] == "border:":
                      ndef[5] = colorformat(styledef[7:])
                  elif styledef == "roman":
                      ndef[6] = 1
                  elif styledef == "sans":
                      ndef[7] = 1
                  elif styledef == "mono":
                      ndef[8] = 1
                  else:
                      ndef[0] = colorformat(styledef)
  
      return obj
  
file_path: wandb/wandb/vendor/pygments/style.py
imports: from pygments.token import Token, STANDARD_TYPES
  from pygments.util import add_metaclass
label_desc: Use image node_id 1 for calling the StyleMeta obj's underlying member method code with example usage: obj.__new__(mcs, name, bases, dct) and returns: obj, text, col, str, unknown