code: def test_replaceable_uris_emit_extlinks_warnings(app, warning):
      app.build()
      warning_output = warning.getvalue()
  
      # there should be exactly three warnings for replaceable URLs
      message = (
          "index.rst:%d: WARNING: hardcoded link 'https://github.com/sphinx-doc/sphinx/issues/1' "
          "could be replaced by an extlink (try using '%s' instead)"
      )
      assert message % (11, ":issue:`1`") in warning_output
      assert (
          message % (13, ":issue:`inline replaceable link <1>`")
          in warning_output
      )
      assert (
          message % (15, ":issue:`replaceable link <1>`")
          in warning_output
      )
  
imports: import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: test_replaceable_uris_emit_extlinks_warnings(app, warning) without return types