code: def text(self, *args, **kwargs):
      return summary_pb2.Summary.FromString(
          summary.op(*args, **kwargs).numpy()
      )
  
imports: import glob
  import os
  import numpy
  import tensorflow
  from tensorboard.compat import tf2
  from tensorboard.compat.proto import summary_pb2
  from tensorboard.plugins.text import metadata
  from tensorboard.plugins.text import summary
  from tensorboard.util import tensor_util
label_desc: Use image node_id 1 for calling the SummaryV1OpTest obj's underlying member method code with example usage: obj.text() and returns: summary_pb2