code: def _write_summarized(self, run_id, prefix, summarized):
      cur = self._db.cursor()
      for tag in summarized:
          tsum = summarized[tag]
          cur.execute(
              """
                INSERT INTO scalar
                VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
              """,
              (
                  run_id,
                  prefix,
                  tag,
                  tsum.first_val,
                  tsum.first_step,
                  tsum.last_val,
                  tsum.last_step,
                  tsum.min_val,
                  tsum.min_step,
                  tsum.max_val,
                  tsum.max_step,
                  tsum.avg_val,
                  tsum.total,
                  tsum.count,
              ),
          )
      self._db.commit()
  
imports: import logging
  import os
  import sqlite3
  from guild import run_util
  from guild import tfevent
  from guild import util
  from guild import var
label_desc: Use image node_id 7 for calling the ScalarReader obj's underlying member method code with example usage: obj._write_summarized(run_id, prefix, summarized) without return types