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 format_unencoded(self, tokensource, outfile):
      self._write_lineno(outfile)
  
      for ttype, value in tokensource:
          color = self.colorscheme.get(ttype)
          while color is None:
              ttype = ttype[:-1]
              color = self.colorscheme.get(ttype)
          if color:
              color = color[self.darkbg]
              spl = value.split("\n")
              for line in spl[:-1]:
                  if line:
                      outfile.write(ircformat(color, line))
                  outfile.write("\n")
                  self._write_lineno(outfile)
              if spl[-1]:
                  outfile.write(ircformat(color, spl[-1]))
          else:
              outfile.write(value)
  
file_path: catboost/contrib/python/Pygments/py3/pygments/formatters/irc.py
imports: 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 3 for calling the IRCFormatter obj's underlying member method code with example usage: obj.format_unencoded(tokensource, outfile) without return types