code: def __init__(self, cfg: Any):
      logging.getLogger("sqlitedict").setLevel(logging.ERROR)
  
      self.logs = f"{cfg.output_directory}/charts.db"
  
      params = get_cfg(cfg)
  
      with SqliteDict(self.logs) as logs:
          logs["cfg"] = params
          logs.commit()
  
imports: import dataclasses
  import logging
  import os
  from typing import Any, Dict, List, Optional
  import numpy
  from sqlitedict import SqliteDict
  from llm_studio.src.utils.plot_utils import PLOT_ENCODINGS
label_desc: Use image node_id 1 to create a new LocalLogger object  with example: obj = LocalLogger(cfg)