class_docstr: Parse and mark up content of a code block.
  
  This is compatible with docutils' :rst:dir:`code` directive.
class_docstr_tok: ["Parse","and","mark","up","content","of","a","code","block",".","This","is","compatible","with","docutils","'",":","rst",":","dir",":","`","code","`","directive","."]
code: def run(self) -> list[Node]:
      self.assert_has_content()
  
      set_classes(self.options)
      code = "\n".join(self.content)
      node = nodes.literal_block(
          code,
          code,
          classes=self.options.get("classes", []),
          force="force" in self.options,
          highlight_args={},
      )
      self.add_name(node)
      set_source_info(self, node)
  
      if self.arguments:
          # highlight language specified
          node["language"] = self.arguments[0]
      else:
          # no highlight language specified.  Then this directive refers the current
          # highlight setting via ``highlight`` directive or ``highlight_language``
          # configuration.
          node["language"] = self.env.temp_data.get(
              "highlight_language", self.config.highlight_language
          )
  
      if "number-lines" in self.options:
          node["linenos"] = True
  
          # if number given, treat as lineno-start.
          if self.options["number-lines"]:
              node["highlight_args"]["linenostart"] = self.options[
                  "number-lines"
              ]
  
      return [node]
  
imports: from __future__ import annotations
  import os
  from os import path
  from typing import TYPE_CHECKING, Any, cast
  from docutils import nodes
  from docutils.nodes import Node, make_id
  from docutils.parsers.rst import directives
  from docutils.parsers.rst.directives import images, tables
  from docutils.parsers.rst.directives.misc import Meta
  from docutils.parsers.rst.roles import set_classes
  from sphinx.directives import optional_int
  from sphinx.domains.math import MathDomain
  from sphinx.locale import __
  from sphinx.util import logging
  from sphinx.util.docutils import SphinxDirective
  from sphinx.util.nodes import set_source_info
  from sphinx.util.osutil import SEP, os_path, relpath
label_desc: Use image node_id 1 for calling the Code obj's underlying member method code with example usage: obj.run() and returns: list