code: def setup_class(cls):
      cur_dir = os.path.dirname(os.path.abspath(__file__))
      filepath = os.path.join(
          cur_dir, "results", "theil_textile_predict.csv"
      )
      cls.res_predict = pd.read_csv(filepath, sep=",")
  
      names = "year	lconsump	lincome	lprice".split()
  
      data = np.array(
          """\
          1923	1.99651	1.98543	2.00432
          1924	1.99564	1.99167	2.00043
          1925	2	2	2
          1926	2.04766	2.02078	1.95713
          1927	2.08707	2.02078	1.93702
          1928	2.07041	2.03941	1.95279
          1929	2.08314	2.04454	1.95713
          1930	2.13354	2.05038	1.91803
          1931	2.18808	2.03862	1.84572
          1932	2.18639	2.02243	1.81558
          1933	2.20003	2.00732	1.78746
          1934	2.14799	1.97955	1.79588
          1935	2.13418	1.98408	1.80346
          1936	2.22531	1.98945	1.72099
          1937	2.18837	2.0103	1.77597
          1938	2.17319	2.00689	1.77452
          1939	2.2188	2.0162	1.78746""".split(),
          float,
      ).reshape(-1, 4)
  
      endog = data[:, 1]
      # constant at the end to match Stata
      exog = np.column_stack((data[:, 2:], np.ones(endog.shape[0])))
  
      # prior(lprice -0.7 0.15 lincome 1 0.15) cov(lprice lincome -0.01)
      r_matrix = np.array([[1, 0, 0], [0, 1, 0]])
      r_mean = [1, -0.7]
  
      cov_r = np.array([[0.15**2, -0.01], [-0.01, 0.15**2]])
      mod = TheilGLS(
          endog, exog, r_matrix, q_matrix=r_mean, sigma_prior=cov_r
      )
      cls.res1 = mod.fit(cov_type="data-prior", use_t=True)
      # cls.res1._cache['scale'] = 0.0001852252884817586 # from tg_mixed
      cls.res1._cache["scale"] = 0.00018334123641580062  # from OLS
      from .results import results_theil_textile as resmodule
  
      cls.res2 = resmodule.results_theil_textile
  
imports: import os
  import numpy
  import pandas
  import pytest
  from numpy.testing import assert_allclose
  from statsmodels.regression.linear_model import OLS, GLS
  from statsmodels.sandbox.regression.penalized import TheilGLS
label_desc: Use image node_id 1 for calling the TestTheilTextile obj's underlying member method code with example usage: obj.setup_class(cls) without return types