code: def test_normal_flow(
      pytester: Pytester, pyfile_with_warnings
  ) -> None:
      """Check that the warnings section is displayed."""
      result = pytester.runpytest(pyfile_with_warnings)
      result.stdout.fnmatch_lines(
          [
              "*== %s ==*" % WARNINGS_SUMMARY_HEADER,
              "test_normal_flow.py::test_func",
              "*normal_flow_module.py:3: UserWarning: user warning",
              '*  warnings.warn(UserWarning("user warning"))',
              "*normal_flow_module.py:4: RuntimeWarning: runtime warning",
              '*  warnings.warn(RuntimeWarning("runtime warning"))',
              "* 1 passed, 2 warnings*",
          ]
      )
  
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 2 for calling a global function with example usage: test_normal_flow(pytester, pyfile_with_warnings) without return types