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).
  
      No other code is executed after using ``xfail()`` (it is implemented
      internally by raising an exception).
  
      :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
  from typing import Any
  from typing import Callable
  from typing import cast
  from typing import NoReturn
  from typing import Optional
  from typing import Protocol
  from typing import Type
  from typing import TypeVar
label_desc: Use image node_id 5 for calling a global function with example usage: xfail(reason) without return types