code: def test_linkcode(app, status, warning):
      app.build(filenames=[app.srcdir / "objects.rst"])
  
      stuff = (app.outdir / "objects.html").read_text(encoding="utf8")
  
      assert "https://foobar/source/foolib.py" in stuff
      assert "https://foobar/js/" in stuff
      assert "https://foobar/c/" in stuff
      assert "https://foobar/cpp/" in stuff
  
file_path: sphinx/tests/test_extensions/test_ext_viewcode.py
imports: import re
  import shutil
  import pytest
label_desc: Use image node_id 6 for calling a global function with example usage: test_linkcode(app, status, warning) without return types