code: def _migrate_scalar_value(value):
      scalar_value = value.simple_value
      summary_metadata = scalar_metadata.create_summary_metadata(
          display_name=value.metadata.display_name or value.tag,
          description=value.metadata.summary_description,
      )
      return make_summary(value.tag, summary_metadata, scalar_value)
  
file_path: tensorboard/tensorboard/data_compat.py
imports: import numpy
  from tensorboard.compat.proto import event_pb2
  from tensorboard.compat.proto import summary_pb2
  from tensorboard.plugins.audio import metadata
  from tensorboard.plugins.histogram import metadata
  from tensorboard.plugins.image import metadata
  from tensorboard.plugins.scalar import metadata
  from tensorboard.util import tensor_util
label_desc: Use image node_id 7 for calling a global function with example usage: _migrate_scalar_value(value) and returns: make_summary