code: def _setup_module(rootdir, sphinx_test_tempdir):
      global app, original, original_uids
      srcdir = sphinx_test_tempdir / "test-versioning"
      if not srcdir.exists():
          shutil.copytree(rootdir / "test-versioning", srcdir)
      app = SphinxTestApp(srcdir=srcdir)
      app.builder.env.app = app
      app.connect("doctree-resolved", on_doctree_resolved)
      app.build()
      original = doctrees["original"]
      original_uids = [n.uid for n in add_uids(original, is_paragraph)]
      yield
      app.cleanup()
  
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 1 for calling a global function with example usage: _setup_module(rootdir, sphinx_test_tempdir) without return types