code: def _migrate_hparams_value(value):
      if value.HasField("metadata"):
          value.metadata.data_class = summary_pb2.DATA_CLASS_TENSOR
      if not value.HasField("tensor"):
          value.tensor.CopyFrom(hparams_metadata.NULL_TENSOR)
      return (value,)
  
imports: from tensorboard.compat.proto import event_pb2
  from tensorboard.compat.proto import summary_pb2
  from tensorboard.plugins.audio import metadata
  from tensorboard.plugins.custom_scalar import metadata
  from tensorboard.plugins.graph import metadata
  from tensorboard.plugins.histogram import metadata
  from tensorboard.plugins.hparams import metadata
  from tensorboard.plugins.image import metadata
  from tensorboard.plugins.mesh import metadata
  from tensorboard.plugins.pr_curve import metadata
  from tensorboard.plugins.scalar import metadata
  from tensorboard.plugins.text import metadata
  from tensorboard.util import tensor_util
label_desc: Use image node_id 11 for calling a global function with example usage: _migrate_hparams_value(value) and returns: value