code: def test_inventory_localization(tmp_path):
      # Build an app using Estonian (EE) locale
      srcdir_et = _write_appconfig(tmp_path, "et")
      inventory_et = _build_inventory(srcdir_et)
  
      # Build the same app using English (US) locale
      srcdir_en = _write_appconfig(tmp_path, "en")
      inventory_en = _build_inventory(srcdir_en)
  
      # Ensure that the inventory contents differ
      assert inventory_et.read_bytes() != inventory_en.read_bytes()
  
file_path: sphinx/tests/test_util/test_util_inventory.py
imports: import os
  import posixpath
  import zlib
  from io import BytesIO
  import sphinx.locale
  from sphinx.testing.util import SphinxTestApp
  from sphinx.util.inventory import InventoryFile
label_desc: Use image node_id 6 for calling a global function with example usage: test_inventory_localization(tmp_path) without return types