code: def test__repr_latex(self):
      desired = r"""
  \begin{center}
  \begin{tabular}{lcc}
  \toprule
                 & \textbf{header1} & \textbf{header2}  \\
  \midrule
  \textbf{stub1} &      5.394       &       29.3        \\
  \textbf{stub2} &       343        &       34.2        \\
  \bottomrule
  \end{tabular}
  \end{center}
  """
      testdata = [[5.394, 29.3], [343, 34.2]]
      teststubs = ("stub1", "stub2")
      testheader = ("header1", "header2")
      tbl = SimpleTable(
          testdata, testheader, teststubs, txt_fmt=default_txt_fmt
      )
      actual = "\n%s\n" % tbl._repr_latex_()
      assert_equal(actual, desired)
  
file_path: statsmodels/statsmodels/iolib/tests/test_table.py
imports: from numpy.testing import assert_equal
  from statsmodels.iolib.table import SimpleTable, default_txt_fmt
  from statsmodels.iolib.table import default_latex_fmt
  from statsmodels.iolib.table import default_html_fmt
  import pandas
  from statsmodels.regression.linear_model import OLS
label_desc: Use image node_id 8 for calling the TestSimpleTable obj's underlying member method code with example usage: obj.test__repr_latex() without return types