class_docstr: Convert or remove viewcode_anchor nodes depends on builder.
class_docstr_tok: ["Convert","or","remove","viewcode_anchor","nodes","depends","on","builder","."]
code: def convert_viewcode_anchors(self) -> None:
      for node in self.document.findall(viewcode_anchor):
          anchor = nodes.inline(
              "", _("[source]"), classes=["viewcode-link"]
          )
          refnode = make_refnode(
              self.app.builder,
              node["refdoc"],
              node["reftarget"],
              node["refid"],
              anchor,
          )
          node.replace_self(refnode)
  
imports: from __future__ import annotations
  import posixpath
  import traceback
  from importlib import import_module
  from os import path
  from typing import TYPE_CHECKING, Any, cast
  from docutils import nodes
  from docutils.nodes import Element, Node
  import sphinx
  from sphinx import addnodes
  from sphinx.builders.html import StandaloneHTMLBuilder
  from sphinx.locale import _, __
  from sphinx.pycode import ModuleAnalyzer
  from sphinx.transforms.post_transforms import SphinxPostTransform
  from sphinx.util import logging
  from sphinx.util.display import status_iterator
  from sphinx.util.nodes import make_refnode
label_desc: Use image node_id 2 for calling the ViewcodeAnchorTransform obj's underlying member method code with example usage: obj.convert_viewcode_anchors() without return types