code: def _try_scalar_event(event, val):
      if val.HasField("tensor"):
          scalar_val = _try_tensor_scalar(val)
          if scalar_val is not None:
              return val.tag, scalar_val, event.step
      elif val.HasField("simple_value"):
          return val.tag, val.simple_value, event.step
      return None
  
imports: import glob
  import hashlib
  import logging
  import os
  from guild import tensorboard_util
label_desc: Use image node_id 2 for calling a global function with example usage: _try_scalar_event(event, val) and returns: None, val,  scalar_val,  event, val,  val,  event