code: def test_assert_outcomes_after_pytest_error(
      pytester: Pytester,
  ) -> None:
      pytester.makepyfile("def test_foo(): assert True")
  
      result = pytester.runpytest("--unexpected-argument")
      with pytest.raises(
          ValueError, match="Pytest terminal summary report not found"
      ):
          result.assert_outcomes(passed=0)
  
imports: import os
  import subprocess
  import sys
  import time
  from types import ModuleType
  from typing import List
  import _pytest.pytester
  import pytest
  from _pytest.config import ExitCode
  from _pytest.config import PytestPluginManager
  from _pytest.monkeypatch import MonkeyPatch
  from _pytest.pytester import HookRecorder
  from _pytest.pytester import LineMatcher
  from _pytest.pytester import Pytester
  from _pytest.pytester import SysModulesSnapshot
  from _pytest.pytester import SysPathsSnapshot
label_desc: Use image node_id 12 for calling a global function with example usage: test_assert_outcomes_after_pytest_error(pytester) without return types