code: def on_doctree_resolved(app, doctree, docname):
      doctrees[docname] = doctree
  
file_path: sphinx/tests/test_versioning.py
imports: import pickle
  import shutil
  import pytest
  from sphinx.testing.util import SphinxTestApp
  from sphinx.versioning import add_uids, get_ratio, merge_doctrees
label_desc: Use image node_id 2 for calling a global function with example usage: on_doctree_resolved(app, doctree, docname) without return types