code: def test_term_in_raw_directive(app):
      app.build(force_all=True)
      searchindex = load_searchindex(app.outdir / "searchindex.js")
      assert not is_registered_term(searchindex, "raw")
      assert is_registered_term(searchindex, "rawword")
      assert not is_registered_term(searchindex, "latex_keyword")
  
imports: import json
  import warnings
  from io import BytesIO
  import pytest
  from docutils import frontend, utils
  from docutils.parsers import rst
  from sphinx.search import IndexBuilder
label_desc: Use image node_id 10 for calling a global function with example usage: test_term_in_raw_directive(app) without return types