code: def scalars(run, val="last_val", key=None):
      key = key or (lambda s: s["tag"])
      return {key(s): s[val] for s in iter_run_scalars(run)}
  
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 12 for calling a global function with example usage: scalars(run, val, key) and returns: unknown