class_docstr: Directive to describe a class, function or similar object.  Not used
  directly, but subclassed (in domain-specific directives) to add custom
  behavior.
class_docstr_tok: ["Directive","to","describe","a","class",",","function","or","similar","object",".","Not","used","directly",",","but","subclassed","(","in","domain-specific","directives",")","to","add","custom","behavior","."]
docstr: Called before parsing content. Used to set information about the current
  directive context on the build environment.
docstr_tok: ["Called","before","parsing","content",".","Used","to","set","information","about","the","current","directive","context","on","the","build","environment","."]
code: def before_content(self) -> None:
      """
      Called before parsing content. Used to set information about the current
      directive context on the build environment.
      """
      pass
  
imports: from __future__ import annotations
  import re
  from typing import TYPE_CHECKING, Any, Generic, TypeVar, cast
  from docutils import nodes
  from docutils.parsers.rst import directives, roles
  from sphinx import addnodes
  from sphinx.addnodes import desc_signature
  from sphinx.util import docutils
  from sphinx.util.docfields import DocFieldTransformer, Field, TypedField
  from sphinx.util.docutils import SphinxDirective
  from sphinx.util.nodes import nested_parse_with_titles
  from sphinx.util.typing import OptionSpec
label_desc: Use image node_id 5 for calling the ObjectDescription obj's underlying member method code with example usage: obj.before_content() without return types