code: def test_xpassed_with_strict_is_considered_a_failure(
      pytester: Pytester,
  ) -> None:
      pytester.makepyfile(
          """
          import pytest
  
          pytest_plugins = "pytester"
  
          @pytest.mark.xfail(strict=True)
          def test_potato():
              assert True
      """
      )
      result = pytester.runpytest()
      result.assert_outcomes(failed=1)
      assert result.ret != 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 7 for calling a global function with example usage: test_xpassed_with_strict_is_considered_a_failure(pytester) without return types