class_docstr: A LangChain CallbackHandler that records callbacks for offline playback.
docstr: Write the list of CallbackRecords to a pickle file at the given path.
docstr_tok: ["Write","the","list","of","CallbackRecords","to","a","pickle","file","at","the","given","path","."]
code: def dump_records_to_file(self, path: str) -> None:
      """Write the list of CallbackRecords to a pickle file at the given path."""
      with open(path, "wb") as file:
          pickle.dump(self._records, file)
  
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 2 for calling the CapturingCallbackHandler obj's underlying member method code with example usage: obj.dump_records_to_file(path) without return types