class_docstr: A class to organize all history-related functionality in one place.
      
class_docstr_tok: ["A","class","to","organize","all","history-related","functionality","in","one","place","."]
code: def _writeout_input_cache(self, conn):
      with conn:
          for line in self.db_input_cache:
              conn.execute(
                  "INSERT INTO history VALUES (?, ?, ?, ?)",
                  (self.session_number,) + line,
              )
  
imports: import atexit
  import datetime
  from pathlib import Path
  import re
  import sqlite3
  import threading
  from traitlets.config.configurable import LoggingConfigurable
  from decorator import decorator
  from IPython.utils.decorators import undoc
  from IPython.paths import locate_profile
  from traitlets import Any, Bool, Dict, Instance, Integer, List, Unicode, Union, TraitError, default, observe
label_desc: Use image node_id 14 for calling the HistoryManager obj's underlying member method code with example usage: obj._writeout_input_cache(conn) without return types