code: def test_simple_table_special_chars(self):
      # Simple table with characters: (%, >, |, _, $, &, #)
      cell0c_data = 22
      cell1c_data = 1053
      row0c_data = [cell0c_data, cell1c_data]
      row1c_data = [23, 6250.4]
      table1c_data = [row0c_data, row1c_data]
      test1c_stubs = (">stub1%", "stub_2")
      test1c_header = ("#header1$", "header&|")
      tbl_c = SimpleTable(
          table1c_data, test1c_header, test1c_stubs, ltx_fmt=ltx_fmt1
      )
  
      def test_ltx_special_chars(self):
          # Test for special characters (latex) in headers and stubs
          desired = r"""
  \begin{tabular}{lcc}
  \toprule
                      & \textbf{\#header1\$} & \textbf{header\&$|$}  \\
  \midrule
  \textbf{$>$stub1\%} &          22          &         1053          \\
  \textbf{stub\_2}    &          23          &        6250.4         \\
  \bottomrule
  \end{tabular}
  """
          actual = "\n%s\n" % tbl_c.as_latex_tabular(center=False)
          assert_equal(actual, desired)
  
      test_ltx_special_chars(self)
  
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 5 for calling the TestSimpleTable obj's underlying member method code with example usage: obj.test_simple_table_special_chars() without return types