code: def xfail(reason: str = "") -> NoReturn:
      """Imperatively xfail an executing test or setup function with the given reason.
  
      This function should be called only during testing (setup, call or teardown).
  
      :param reason:
          The message to show the user as reason for the xfail.
  
      .. note::
          It is better to use the :ref:`pytest.mark.xfail ref` marker when
          possible to declare a test to be xfailed under certain conditions
          like known bugs or missing features.
      """
      __tracebackhide__ = True
      raise XFailed(reason)
  
imports: import sys
  import warnings
  from typing import Any
  from typing import Callable
  from typing import cast
  from typing import NoReturn
  from typing import Optional
  from typing import Type
  from typing import TypeVar
  from _pytest.deprecated import KEYWORD_MSG_ARG
label_desc: Use image node_id 6 for calling a global function with example usage: xfail(reason) without return types