class_docstr: Write a summary with all versionadded/changed directives.
class_docstr_tok: ["Write","a","summary","with","all","versionadded\/changed","directives","."]
code: def hl(self, text: str, version: str) -> str:
      text = html.escape(text)
      for directive in ("versionchanged", "versionadded", "deprecated"):
          text = text.replace(
              f".. {directive}:: {version}",
              f"<b>.. {directive}:: {version}</b>",
          )
      return text
  
imports: from __future__ import annotations
  import html
  from os import path
  from typing import TYPE_CHECKING, Any, cast
  from sphinx import package_dir
  from sphinx.builders import Builder
  from sphinx.domains.changeset import ChangeSetDomain
  from sphinx.locale import _, __
  from sphinx.theming import HTMLThemeFactory
  from sphinx.util import logging
  from sphinx.util.console import bold
  from sphinx.util.fileutil import copy_asset_file
  from sphinx.util.osutil import ensuredir, os_path
label_desc: Use image node_id 4 for calling the ChangesBuilder obj's underlying member method code with example usage: obj.hl(text, version) and returns: text