code: def fail(
      reason: str = "", pytrace: bool = True, msg: Optional[str] = None
  ) -> NoReturn:
      """Explicitly fail an executing test with the given message.
  
      :param reason:
          The message to show the user as reason for the failure.
  
      :param pytrace:
          If False, msg represents the full failure information and no
          python traceback will be reported.
  
      :param msg:
          Same as ``reason``, but deprecated. Will be removed in a future version, use ``reason`` instead.
      """
      __tracebackhide__ = True
      reason = _resolve_msg_to_reason("fail", reason, msg)
      raise Failed(msg=reason, pytrace=pytrace)
  
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 4 for calling a global function with example usage: fail(reason, pytrace, msg) without return types