code: def test_Catalog_duplicated_message():
      catalog = Catalog()
      catalog.add("hello", MsgOrigin("/path/to/filename", 1))
      catalog.add("hello", MsgOrigin("/path/to/filename", 1))
      catalog.add("hello", MsgOrigin("/path/to/filename", 2))
      catalog.add("hello", MsgOrigin("/path/to/yetanother", 1))
      catalog.add("world", MsgOrigin("/path/to/filename", 1))
  
      assert len(list(catalog)) == 2
  
      msg1, msg2 = list(catalog)
      assert msg1.text == "hello"
      assert msg1.locations == [
          ("/path/to/filename", 1),
          ("/path/to/filename", 2),
          ("/path/to/yetanother", 1),
      ]
      assert msg2.text == "world"
      assert msg2.locations == [("/path/to/filename", 1)]
  
file_path: sphinx/tests/test_builders/test_build_gettext.py
imports: import gettext
  import os
  import re
  import subprocess
  import sys
  from subprocess import CalledProcessError
  import pytest
  from sphinx.builders.gettext import Catalog, MsgOrigin
label_desc: Use image node_id 2 for calling a global function with example usage: test_Catalog_duplicated_message() without return types