code: def fail(reason: str = "", pytrace: bool = True) -> 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.
      """
      __tracebackhide__ = True
      raise Failed(msg=reason, pytrace=pytrace)
  
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 4 for calling a global function with example usage: fail(reason, pytrace) without return types