code: def test_xfail_not_considered_failure(
      self, pytester: Pytester
  ) -> None:
      pytester.makepyfile(
          """
              import pytest
              @pytest.mark.xfail
              def test(): assert 0
          """
      )
      result = pytester.runpytest()
      result.stdout.fnmatch_lines(["*1 xfailed*"])
      assert self.get_cached_last_failed(pytester) == []
  
imports: import os
  import shutil
  from pathlib import Path
  from typing import Generator
  from typing import List
  import pytest
  from _pytest.config import ExitCode
  from _pytest.monkeypatch import MonkeyPatch
  from _pytest.pytester import Pytester
  from _pytest.tmpdir import TempPathFactory
label_desc: Use image node_id 13 for calling the TestLastFailed obj's underlying member method code with example usage: obj.test_xfail_not_considered_failure(pytester) without return types