code: def test_all_replacements_suggested_if_multiple_replacements_possible(
      app, warning
  ):
      app.build()
      warning_output = warning.getvalue()
      # there should be six warnings for replaceable URLs, three pairs per link
      assert warning_output.count("WARNING: hardcoded link") == 6
      message = (
          "index.rst:%d: WARNING: hardcoded link 'https://github.com/octocat' "
          "could be replaced by an extlink (try using '%s' instead)"
      )
      assert message % (14, ":user:`octocat`") in warning_output
      assert (
          message % (16, ":user:`inline replaceable link <octocat>`")
          in warning_output
      )
      assert (
          message % (18, ":user:`replaceable link <octocat>`")
          in warning_output
      )
      message = (
          "index.rst:%d: WARNING: hardcoded link 'https://github.com/octocat' "
          "could be replaced by an extlink (try using '%s' instead)"
      )
      assert message % (14, ":repo:`octocat`") in warning_output
      assert (
          message % (16, ":repo:`inline replaceable link <octocat>`")
          in warning_output
      )
      assert (
          message % (18, ":repo:`replaceable link <octocat>`")
          in warning_output
      )
  
imports: import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: test_all_replacements_suggested_if_multiple_replacements_possible(app, warning) without return types