code: def tf_scalar_summary(vals):
      # pylint: disable=import-error,no-name-in-module
      from tensorflow.core.framework.summary_pb2 import Summary
  
      return Summary(
          value=[
              Summary.Value(tag=key, simple_value=val)
              for key, val in vals.items()
          ]
      )
  
imports: import time
  import warnings
  from guild import python_util
  from guild import util
  from guild.plugin import Plugin
label_desc: Use image node_id 2 for calling a global function with example usage: tf_scalar_summary(vals) and returns: Summary