class_docstr: A directive to collect all lexers/formatters/filters and generate
  autoclass directives for them.
class_docstr_tok: ["A","directive","to","collect","all","lexers\/formatters\/filters","and","generate","autoclass","directives","for","them","."]
code: def run(self):
      self.filenames = set()
      if self.arguments[0] == "lexers":
          out = self.document_lexers()
      elif self.arguments[0] == "formatters":
          out = self.document_formatters()
      elif self.arguments[0] == "filters":
          out = self.document_filters()
      elif self.arguments[0] == "lexers_overview":
          out = self.document_lexers_overview()
      else:
          raise Exception(
              'invalid argument for "pygmentsdoc" directive'
          )
      node = nodes.compound()
      vl = ViewList(out.split("\n"), source="")
      nested_parse_with_titles(self.state, vl, node)
      for fn in self.filenames:
          self.state.document.settings.record_dependencies.add(fn)
      return node.children
  
file_path: catboost/contrib/python/Pygments/py3/pygments/sphinxext.py
imports: import sys
  from docutils import nodes
  from docutils.statemachine import ViewList
  from docutils.parsers.rst import Directive
  from sphinx.util.nodes import nested_parse_with_titles
label_desc: Use image node_id 1 for calling the PygmentsDoc obj's underlying member method code with example usage: obj.run() and returns: node