class_docstr: A LangChain CallbackHandler that records callbacks for offline playback.
code: def __init__(self) -> None:
      self._records: list[CallbackRecord] = []
      self._last_time: float | None = None
  
imports: from __future__ import annotations
  import math
  import pickle
  import time
  from typing import Any, TypedDict
  from langchain.callbacks.base import BaseCallbackHandler
label_desc: Use image node_id 1 to create a new CapturingCallbackHandler object from inherited base classes: BaseCallbackHandler with example: obj = CapturingCallbackHandler()