code: def generate_testdata(self, logdir=None):
      tf.compat.v1.reset_default_graph()
      sess = tf.compat.v1.Session()
      placeholder = tf.compat.v1.placeholder(tf.string)
      summary_tensor = tf.compat.v1.summary.text("message", placeholder)
      vector_summary = tf.compat.v1.summary.text("vector", placeholder)
      scalar_summary = tf.compat.v1.summary.scalar(
          "twelve", tf.constant(12)
      )
  
      run_names = ["fry", "leela"]
      for run_name in run_names:
          subdir = os.path.join(self.logdir, run_name)
          with test_util.FileWriterCache.get(subdir) as writer:
              writer.add_graph(sess.graph)
  
              step = 0
              for gem in GEMS:
                  message = run_name + " *loves* " + gem
                  feed_dict = {
                      placeholder: message,
                  }
                  summ = sess.run(summary_tensor, feed_dict=feed_dict)
                  writer.add_summary(summ, global_step=step)
                  step += 1
  
              # Test unicode superscript 4.
              vector_message = ["one", "two", "three", "\u2074"]
              summ = sess.run(
                  vector_summary,
                  feed_dict={placeholder: vector_message},
              )
              writer.add_summary(summ)
  
              summ = sess.run(
                  scalar_summary, feed_dict={placeholder: []}
              )
              writer.add_summary(summ)
  
imports: import collections.abc
  import os
  import textwrap
  import numpy
  import tensorflow
  from tensorboard import plugin_util
  from tensorboard import context
  from tensorboard.backend.event_processing import data_provider
  from tensorboard.backend.event_processing import plugin_event_multiplexer
  from tensorboard.plugins import base_plugin
  from tensorboard.plugins.text import text_plugin
  from tensorboard.util import test_util
label_desc: Use image node_id 3 for calling the TextPluginTest obj's underlying member method code with example usage: obj.generate_testdata(logdir) without return types