class_docstr: Original :doc: role throws away all the format, and keep raw text only.
  We wish to keep module names literal. This patch is to keep literal format in :doc: resolver.
class_docstr_tok: ["Original",":","doc",":","role","throws","away","all","the","format",",","and","keep","raw","text","only",".","We","wish","to","keep","module","names","literal",".","This","patch","is","to","keep","literal","format","in",":","doc",":","resolver","."]
code: def restore(self, *args, **kwargs):
      assert self.original is not None
      sphinx.domains.std.StandardDomain._resolve_doc_xref = (
          self.original
      )
  
file_path: nni/docs/extension/patch_autodoc.py
imports: import inspect
  import os
  from typing import List, Tuple, List
  import sphinx
  from docutils import nodes
  from docutils.nodes import Node
label_desc: Use image node_id 1 for calling the ResolveDocPatch obj's underlying member method code with example usage: obj.restore() without return types