class_docstr: Format tokens with groff escapes to change their color and font style.
  
  .. versionadded:: 2.11
  
  Additional options accepted:
  
  `style`
      The style to use, can be a string or a Style subclass (default:
      ``'default'``).
  
  `monospaced`
      If set to true, monospace font will be used (default: ``true``).
  
  `linenos`
      If set to true, print the line numbers (default: ``false``).
  
  `wrap`
      Wrap lines to the specified number of characters. Disabled if set to 0
      (default: ``0``).
code: def _make_styles(self):
      regular = "\\f[CR]" if self.monospaced else "\\f[R]"
      bold = "\\f[CB]" if self.monospaced else "\\f[B]"
      italic = "\\f[CI]" if self.monospaced else "\\f[I]"
  
      for ttype, ndef in self.style:
          start = end = ""
          if ndef["color"]:
              start += "\\m[%s]" % ndef["color"]
              end = "\\m[]" + end
          if ndef["bold"]:
              start += bold
              end = regular + end
          if ndef["italic"]:
              start += italic
              end = regular + end
          if ndef["bgcolor"]:
              start += "\\M[%s]" % ndef["bgcolor"]
              end = "\\M[]" + end
  
          self.styles[ttype] = start, end
  
file_path: catboost/contrib/python/Pygments/py3/pygments/formatters/groff.py
imports: import math
  from pygments.formatter import Formatter
  from pygments.util import get_bool_opt, get_int_opt
label_desc: Use image node_id 2 for calling the GroffFormatter obj's underlying member method code with example usage: obj._make_styles() without return types