warp.record_event# warp.record_event(event=None, external=False)[source]# Convenience function for calling Stream.record_event() on the current stream. Parameters: event (Event | None) – Event instance to record. If None, a new Event instance will be created. external (bool) – Whether this is an external event during graph capture. This argument has no effect outside of graph capture. Returns: The recorded event.