code: def test_duplicated_toctree_entry(app, status, warning):
      app.build(force_all=True)
      assert (
          "WARNING: duplicated ToC entry found: foo.xhtml"
          in warning.getvalue()
      )
  
imports: import os
  import subprocess
  from pathlib import Path
  from subprocess import CalledProcessError
  from xml.etree import ElementTree
  import pytest
  from sphinx.builders.epub3 import _XML_NAME_PATTERN
label_desc: Use image node_id 11 for calling a global function with example usage: test_duplicated_toctree_entry(app, status, warning) without return types