code: def _init_run_index_tables(db):
      db.execute(
          """
        CREATE TABLE IF NOT EXISTS scalar (
          run,
          prefix,
          tag,
          first_val,
          first_step,
          last_val,
          last_step,
          min_val,
          min_step,
          max_val,
          max_step,
          avg_val,
          total,
          count
        )
      """
      )
      db.execute(
          """
        CREATE INDEX IF NOT EXISTS scalar_i
        ON scalar (run, prefix, tag)
      """
      )
      db.execute(
          """
        CREATE TABLE IF NOT EXISTS scalar_source (
          run,
          prefix,
          path_digest
        )
      """
      )
      db.execute(
          """
        CREATE UNIQUE INDEX IF NOT EXISTS scalar_source_pk
        ON scalar_source (run, prefix)
      """
      )
  
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 10 for calling a global function with example usage: _init_run_index_tables(db) without return types