code: def test_inventory_not_having_version(tmp_path, app, status, warning):
      inv_file = tmp_path / "inventory"
      inv_file.write_bytes(inventory_v2_not_having_version)
      set_config(
          app,
          {
              "https://docs.python.org/": str(inv_file),
          },
      )
  
      # load the inventory and check if it's done correctly
      normalize_intersphinx_mapping(app, app.config)
      load_mappings(app)
  
      rn = reference_check(app, "py", "mod", "module1", "foo")
      assert isinstance(rn, nodes.reference)
      assert (
          rn["refuri"]
          == "https://docs.python.org/foo.html#module-module1"
      )
      assert rn["reftitle"] == "(in foo)"
      assert rn[0].astext() == "Long Module desc"
  
imports: import http.server
  from unittest import mock
  import pytest
  from docutils import nodes
  from sphinx import addnodes
  from sphinx.ext.intersphinx import INVENTORY_FILENAME, _get_safe_url, _strip_basic_auth, fetch_inventory, inspect_main, load_mappings, missing_reference, normalize_intersphinx_mapping
  from sphinx.ext.intersphinx import setup
  from tests.test_util.test_util_inventory import inventory_v2, inventory_v2_not_having_version
  from tests.utils import http_server
label_desc: Use image node_id 11 for calling a global function with example usage: test_inventory_not_having_version(tmp_path, app, status, warning) without return types