code: def event(value: str, payload: Union[str, int, float] = "") -> None:
      """Record an event that occurred during this test. Statistics on the number of test
      runs with each event will be reported at the end if you run Hypothesis in
      statistics reporting mode.
  
      Event values should be strings or convertible to them.  If an optional
      payload is given, it will be included in the string for :ref:`statistics`.
      """
      context = _current_build_context.value
      if context is None:
          raise InvalidArgument(
              "Cannot make record events outside of a test"
          )
  
      payload = _event_to_string(payload, (str, int, float))
      context.data.events[_event_to_string(value)] = payload
  
imports: import math
  from collections import defaultdict
  from typing import NoReturn, Union
  from weakref import WeakKeyDictionary
  from hypothesis import Verbosity, settings
  from hypothesis._settings import note_deprecation
  from hypothesis.errors import InvalidArgument, UnsatisfiedAssumption
  from hypothesis.internal.compat import BaseExceptionGroup
  from hypothesis.internal.conjecture.data import ConjectureData
  from hypothesis.internal.reflection import get_pretty_function_description
  from hypothesis.internal.validation import check_type
  from hypothesis.reporting import report, verbose_report
  from hypothesis.utils.dynamicvariables import DynamicVariable
  from hypothesis.vendor.pretty import IDKey
label_desc: Use image node_id 8 for calling a global function with example usage: event(value, payload) without return types