class_docstr: Format tokens with ANSI color sequences, for output in a text console.
  Color sequences are terminated at newlines, so that paging the output
  works correctly.
  
  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 on the terminal output as well
      (default: ``False`` = no line numbers).
code: def _write_lineno(self, outfile):
      self._lineno += 1
      outfile.write(
          "%s%04d: " % (self._lineno != 1 and "\n" or "", self._lineno)
      )
  
file_path: catboost/contrib/python/Pygments/py3/pygments/formatters/terminal.py
imports: from pygments.formatter import Formatter
  from pygments.token import Keyword, Name, Comment, String, Error, Number, Operator, Generic, Token, Whitespace
  from pygments.console import ansiformat
  from pygments.util import get_choice_opt
label_desc: Use image node_id 3 for calling the TerminalFormatter obj's underlying member method code with example usage: obj._write_lineno(outfile) without return types