code: def test_table_formatting(self):
      self._test(
          textwrap.dedent(
              """\
                  Here is some data:
  
                  TensorBoard usage | Happiness
                  ------------------|----------
                                0.0 |       0.0
                                0.5 |       0.5
                                1.0 |       1.0
  
                  Wouldn't you agree?
                  """
          ),
          textwrap.dedent(
              """\
                  <p>Here is some data:</p>
                  <table>
                  <thead>
                  <tr>
                  <th>TensorBoard usage</th>
                  <th>Happiness</th>
                  </tr>
                  </thead>
                  <tbody>
                  <tr>
                  <td>0.0</td>
                  <td>0.0</td>
                  </tr>
                  <tr>
                  <td>0.5</td>
                  <td>0.5</td>
                  </tr>
                  <tr>
                  <td>1.0</td>
                  <td>1.0</td>
                  </tr>
                  </tbody>
                  </table>
                  <p>Wouldn't you agree?</p>
                  """.rstrip()
          ),
      )
  
imports: import textwrap
  from tensorboard import context
  from tensorboard import plugin_util
  from tensorboard import test
  from tensorboard.backend import experiment_id
label_desc: Use image node_id 4 for calling the MarkdownToSafeHTMLTest obj's underlying member method code with example usage: obj.test_table_formatting() without return types