class_docstr: Format tokens as appropriate for a new testcase.
  
  .. versionadded:: 2.0
class_docstr_tok: ["Format","tokens","as","appropriate","for","a","new","testcase",".","..","versionadded",":",":","2.0"]
code: def __init__(self, **options):
      Formatter.__init__(self, **options)
      if self.encoding is not None and self.encoding != "utf-8":
          raise ValueError("Only None and utf-8 are allowed encodings.")
  
file_path: catboost/contrib/python/Pygments/py2/pygments/formatters/other.py
imports: from pygments.formatter import Formatter
  from pygments.util import get_choice_opt
  from pygments.token import Token
  from pygments.console import colorize
label_desc: Use image node_id 1 to create a new TestcaseFormatter object from inherited base classes: Formatter with example: obj = TestcaseFormatter()