code: def _try_tensor_scalar(val):
      if not _is_float_tensor(val.tensor):
          return None
      ndarray = tensorboard_util.make_ndarray(val.tensor)
      try:
          return ndarray.item()
      except ValueError:
          return None
  
imports: import glob
  import hashlib
  import logging
  import os
  from guild import tensorboard_util
label_desc: Use image node_id 3 for calling a global function with example usage: _try_tensor_scalar(val) and returns: None, ndarray, None