code: def test_html_fmt1(self):
      # Limited test of custom html_fmt
      desired = """
  <table class="simpletable">
  <tr>
      <td></td>    <th>header1</th> <th>header2</th>
  </tr>
  <tr>
    <th>stub1</th>   <td>0.0</td>      <td>1</td>
  </tr>
  <tr>
    <th>stub2</th>    <td>2</td>     <td>3.333</td>
  </tr>
  </table>
  """
      # the previous has significant trailing whitespace that got removed
      # desired = '''\n<table class="simpletable">\n<tr>\n    <td></td>    <th>header1</th> <th>header2</th>\n</tr>\n<tr>\n  <th>stub1</th>   <td>0.0</td>      <td>1</td>   \n</tr>\n<tr>\n  <th>stub2</th>    <td>2</td>     <td>3.333</td> \n</tr>\n</table>\n'''
      actual = "\n%s\n" % tbl.as_html()
      actual = "\n".join(line.rstrip() for line in actual.split("\n"))
      # print(actual)
      # print(desired)
      # print len(actual), len(desired)
      assert_equal(actual, desired)
  
file_path: statsmodels/statsmodels/iolib/tests/test_table_econpy.py
imports: import numpy
  from numpy.testing import assert_equal
  from statsmodels.iolib.table import Cell, SimpleTable
  from statsmodels.iolib.table import default_latex_fmt
  from statsmodels.iolib.table import default_html_fmt
label_desc: Use image node_id 3 for calling the TestSimpleTable obj's underlying member method code with example usage: obj.test_html_fmt1() without return types