code: def test_from_data(self):
      np.random.seed(241)
      df = pd.DataFrame(index=range(100), columns=("v1", "v2", "strat"))
      df["v1"] = np.random.randint(0, 2, 100)
      df["v2"] = np.random.randint(0, 2, 100)
      df["strat"] = np.kron(np.arange(10), np.ones(10))
  
      tables = []
      for k in range(10):
          ii = np.arange(10 * k, 10 * (k + 1))
          tables.append(pd.crosstab(df.loc[ii, "v1"], df.loc[ii, "v2"]))
  
      rslt1 = ctab.StratifiedTable(tables)
      rslt2 = ctab.StratifiedTable.from_data("v1", "v2", "strat", df)
  
      assert_equal(rslt1.summary().as_text(), rslt2.summary().as_text())
  
imports: import os
  import warnings
  import numpy
  import statsmodels.stats.contingency_tables
  import pandas
  from numpy.testing import assert_allclose, assert_equal
  import statsmodels.api
label_desc: Use image node_id 9 for calling the CheckStratifiedMixin obj's underlying member method code with example usage: obj.test_from_data() without return types