code: def test_ignore(
      pytester: Pytester, pyfile_with_warnings, method
  ) -> None:
      args = ("-W", "ignore") if method == "cmdline" else ()
      if method == "ini":
          pytester.makeini(
              """
          [pytest]
          filterwarnings= ignore
          """
          )
  
      result = pytester.runpytest(*args, pyfile_with_warnings)
      result.stdout.fnmatch_lines(["* 1 passed in *"])
      assert WARNINGS_SUMMARY_HEADER not in result.stdout.str()
  
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 5 for calling a global function with example usage: test_ignore(pytester, pyfile_with_warnings, method) without return types