code: def test_ltx_fmt1(self):
      # Limited test of custom ltx_fmt
      desired = r"""
  \begin{center}
  \begin{tabular}{lcc}
  \toprule
                 & \textbf{header1} & \textbf{header2}  \\
  \midrule
  \textbf{stub1} &       0.0        &        1          \\
  \textbf{stub2} &        2         &      3.333        \\
  \bottomrule
  \end{tabular}
  \end{center}
  """
      actual = "\n%s\n" % tbl.as_latex_tabular()
      # print(actual)
      # print(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 2 for calling the TestSimpleTable obj's underlying member method code with example usage: obj.test_ltx_fmt1() without return types