code: def fixup_keywords(app, exception):
      # only works for .chm output
      if getattr(app.builder, "name", "") != "htmlhelp" or exception:
          return
  
      getLogger(__name__).info(
          "fixing HTML escapes in keywords file..."
      )
      outdir = pathlib.Path(app.builder.outdir)
      outname = app.builder.config.htmlhelp_basename
      with open(outdir / (outname + ".hhk"), "rb") as f:
          index = f.read()
      with open(outdir / (outname + ".hhk"), "wb") as f:
          f.write(index.replace(b"&#x27;", b"&#39;"))
  
file_path: cpython/Doc/tools/extensions/escape4chm.py
imports: import pathlib
  import re
  from html.entities import codepoint2name
  from sphinx.util.logging import getLogger
label_desc: Use image node_id 3 for calling a global function with example usage: fixup_keywords(app, exception) without return types