class_docstr: Format tokens with IRC color sequences
  
  The `get_style_defs()` method doesn't do anything special since there is
  no support for common styles.
  
  Options accepted:
  
  `bg`
      Set to ``"light"`` or ``"dark"`` depending on the terminal's background
      (default: ``"light"``).
  
  `colorscheme`
      A dictionary mapping token types to (lightbg, darkbg) color names or
      ``None`` (default: ``None`` = use builtin colorscheme).
  
  `linenos`
      Set to ``True`` to have line numbers in the output as well
      (default: ``False`` = no line numbers).
code: def __init__(self, **options):
      Formatter.__init__(self, **options)
      self.darkbg = (
          get_choice_opt(options, "bg", ["light", "dark"], "light")
          == "dark"
      )
      self.colorscheme = options.get("colorscheme", None) or IRC_COLORS
      self.linenos = options.get("linenos", False)
      self._lineno = 0
  
file_path: catboost/contrib/python/Pygments/py2/pygments/formatters/irc.py
imports: import sys
  from pygments.formatter import Formatter
  from pygments.token import Keyword, Name, Comment, String, Error, Number, Operator, Generic, Token, Whitespace
  from pygments.util import get_choice_opt
label_desc: Use image node_id 1 to create a new IRCFormatter object from inherited base classes: Formatter with example: obj = IRCFormatter()