code: def test_group_warnings_by_message(pytester: Pytester) -> None:
      pytester.copy_example(
          "warnings/test_group_warnings_by_message.py"
      )
      result = pytester.runpytest()
      result.stdout.fnmatch_lines(
          [
              "*== %s ==*" % WARNINGS_SUMMARY_HEADER,
              "test_group_warnings_by_message.py::test_foo[[]0[]]",
              "test_group_warnings_by_message.py::test_foo[[]1[]]",
              "test_group_warnings_by_message.py::test_foo[[]2[]]",
              "test_group_warnings_by_message.py::test_foo[[]3[]]",
              "test_group_warnings_by_message.py::test_foo[[]4[]]",
              "test_group_warnings_by_message.py::test_foo_1",
              "  */test_group_warnings_by_message.py:*: UserWarning: foo",
              "    warnings.warn(UserWarning(msg))",
              "",
              "test_group_warnings_by_message.py::test_bar[[]0[]]",
              "test_group_warnings_by_message.py::test_bar[[]1[]]",
              "test_group_warnings_by_message.py::test_bar[[]2[]]",
              "test_group_warnings_by_message.py::test_bar[[]3[]]",
              "test_group_warnings_by_message.py::test_bar[[]4[]]",
              "  */test_group_warnings_by_message.py:*: UserWarning: bar",
              "    warnings.warn(UserWarning(msg))",
              "",
              "-- Docs: *",
              "*= 11 passed, 11 warnings *",
          ],
          consecutive=True,
      )
  
imports: import os
  import sys
  import warnings
  from typing import List
  from typing import Optional
  from typing import Tuple
  import pytest
  from _pytest.fixtures import FixtureRequest
  from _pytest.pytester import Pytester
label_desc: Use image node_id 19 for calling a global function with example usage: test_group_warnings_by_message(pytester) without return types