code: def test_append_epilog(app):
      epilog = "this is rst_epilog\ngood-bye reST!"
      content = StringList(
          ["hello Sphinx world", "Sphinx is a document generator"],
          "dummy.rst",
      )
      append_epilog(content, epilog)
  
      assert list(content.xitems()) == [
          ("dummy.rst", 0, "hello Sphinx world"),
          ("dummy.rst", 1, "Sphinx is a document generator"),
          ("dummy.rst", 2, ""),
          ("<rst_epilog>", 0, "this is rst_epilog"),
          ("<rst_epilog>", 1, "good-bye reST!"),
      ]
  
file_path: sphinx/tests/test_util/test_util_rst.py
imports: from docutils.statemachine import StringList
  from jinja2 import Environment
  from sphinx.util.rst import append_epilog, escape, heading, prepend_prolog, textwidth
label_desc: Use image node_id 2 for calling a global function with example usage: test_append_epilog(app) without return types