code: def write_doc(self, docname: str, doctree: nodes.document) -> None:
      for doc_re in self.whitelist_docs:
          if doc_re.match(docname):
              return super().write_doc(docname, doctree)
  
file_path: nni/docs/extension/getpartialtext.py
imports: import re
  from docutils import nodes
  from sphinx.application import Sphinx
  from sphinx.builders.gettext import MessageCatalogBuilder
label_desc: Use image node_id 2 for calling the PartialMessageCatalogBuilder obj's underlying member method code with example usage: obj.write_doc(docname, doctree) and returns: super