code: def record_event(event: str, **kwargs: str | int) -> None:
      """Record an event.
  
      If **kwargs are specified, all of the named arguments have to be passed in the
      same order across all invocations of this method for the same event.
      """
      for callback in _event_listeners:
          callback(event, **kwargs)
  
file_path: jax/jax/_src/monitoring.py
imports: from __future__ import annotations
  from typing import Protocol
label_desc: Use image node_id 1 for calling a global function with example usage: record_event(event) without return types