code: def get_toc_for(self, docname: str, builder: Builder) -> Node:
      return document_toc(self.env, docname, self.env.app.builder.tags)
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Any, TypeVar
  from docutils import nodes
  from docutils.nodes import Element, Node
  from sphinx import addnodes
  from sphinx.locale import __
  from sphinx.util import logging, url_re
  from sphinx.util.matching import Matcher
  from sphinx.util.nodes import _only_node_keep_children, clean_astext
label_desc: Use image node_id 5 for calling the TocTree obj's underlying member method code with example usage: obj.get_toc_for(docname, builder) and returns: document_toc