code: def test_plugin_hooks_are_documented(plugin, plugin_hooks_content):
      headings = get_headings(plugin_hooks_content, "-")
      assert plugin in headings
      hook_caller = getattr(app.pm.hook, plugin)
      arg_names = [
          a for a in hook_caller.spec.argnames if a != "__multicall__"
      ]
      # Check for plugin_name(arg1, arg2, arg3)
      expected = f"{plugin}({', '.join(arg_names)})"
      assert (
          expected in plugin_hooks_content
      ), f"Missing from plugin hook documentation: {expected}"
  
file_path: datasette/tests/test_docs.py
imports: from datasette import app, utils
  from datasette.app import Datasette
  from datasette.filters import Filters
  from pathlib import Path
  import pytest
  import re
label_desc: Use image node_id 6 for calling a global function with example usage: test_plugin_hooks_are_documented(plugin, plugin_hooks_content) without return types