code: def test_gettext_disable_index_entries(app):
      # regression test for #976
      app.env._pickled_doctree_cache.clear()  # clear cache
      app.build(filenames=[app.srcdir / "index_entries.txt"])
  
      pot = (app.outdir / "index_entries.pot").read_text(
          encoding="utf8"
      )
      msg_ids = list(filter(None, map(msgid_getter, pot.splitlines())))
  
      assert msg_ids == [
          "i18n with index entries",
          "index target section",
          "this is :index:`Newsletter` target paragraph.",
          "various index entries",
          "That's all.",
      ]
  
file_path: sphinx/tests/test_builders/test_build_gettext.py
imports: import gettext
  import os
  import re
  import subprocess
  import sys
  from subprocess import CalledProcessError
  import pytest
  from sphinx.builders.gettext import Catalog, MsgOrigin
label_desc: Use image node_id 6 for calling a global function with example usage: test_gettext_disable_index_entries(app) without return types