code: def pb_via_op(self, summary_op, feed_dict=None):
      with tf.compat.v1.Session() as sess:
          actual_pbtxt = sess.run(summary_op, feed_dict=feed_dict or {})
      actual_proto = summary_pb2.Summary()
      actual_proto.ParseFromString(actual_pbtxt)
      return actual_proto
  
imports: import numpy
  import tensorflow
  from tensorboard.compat.proto import summary_pb2
  from tensorboard.plugins.pr_curve import metadata
  from tensorboard.plugins.pr_curve import summary
  from tensorboard.util import tensor_util
  from tensorboard.util import test_util
label_desc: Use image node_id 2 for calling the PrCurveTest obj's underlying member method code with example usage: obj.pb_via_op(summary_op, feed_dict) and returns: actual_proto