code: def make_summary(tag, metadata, data):
      tensor_proto = tensor_util.make_tensor_proto(data)
      return summary_pb2.Summary.Value(
          tag=tag, metadata=metadata, tensor=tensor_proto
      )
  
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 3 for calling a global function with example usage: make_summary(tag, metadata, data) and returns: summary_pb2