code: def testText(self):
      plugin = self.load_plugin()
      fry = plugin.text_impl(
          context.RequestContext(),
          "fry",
          "message",
          experiment="123",
          enable_markdown=True,
      )
      leela = plugin.text_impl(
          context.RequestContext(),
          "leela",
          "message",
          experiment="123",
          enable_markdown=False,
      )
      self.assertEqual(len(fry), 4)
      self.assertEqual(len(leela), 4)
      for i in range(4):
          self.assertEqual(fry[i]["step"], i)
          self.assertEqual(leela[i]["step"], i)
          self.assertEqual(
              fry[i]["text"], "<p>fry <em>loves</em> %s</p>" % GEMS[i]
          )
          self.assertEqual(
              leela[i]["text"], "leela *loves* %s" % GEMS[i]
          )
  
      md_table = plugin.text_impl(
          context.RequestContext(),
          "fry",
          "vector",
          experiment="123",
          enable_markdown=True,
      )[0]["text"]
      self.assertEqual(
          md_table,
          textwrap.dedent(
              """\
                  <table>
                  <tbody>
                  <tr>
                  <td><p>one</p></td>
                  </tr>
                  <tr>
                  <td><p>two</p></td>
                  </tr>
                  <tr>
                  <td><p>three</p></td>
                  </tr>
                  <tr>
                  <td><p>\u2074</p></td>
                  </tr>
                  </tbody>
                  </table>
                  """.rstrip()
          ),
      )
      plain_table = plugin.text_impl(
          context.RequestContext(),
          "fry",
          "vector",
          experiment="123",
          enable_markdown=False,
      )[0]["text"]
      self.assertEqual(
          plain_table,
          textwrap.dedent(
              """\
                  <table>
                  <tbody>
                  <tr>
                  <td>one</td>
                  </tr>
                  <tr>
                  <td>two</td>
                  </tr>
                  <tr>
                  <td>three</td>
                  </tr>
                  <tr>
                  <td>\u2074</td>
                  </tr>
                  </tbody>
                  </table>
                  """.rstrip()
          ),
      )
  
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 6 for calling the TextPluginTest obj's underlying member method code with example usage: obj.testText() without return types