code: def test_stratified_table_cube():
      # Test that we can pass a rank 3 ndarray or a list of rank 2
      # ndarrays to StratifiedTable and get the same results.
  
      tab1 = [[[8, 9], [6, 7]], [[4, 9], [5, 5]], [[8, 8], [9, 11]]]
      tab2 = np.asarray(tab1).T
  
      ct1 = ctab.StratifiedTable(tab1)
      ct2 = ctab.StratifiedTable(tab2)
  
      assert_allclose(ct1.oddsratio_pooled, ct2.oddsratio_pooled)
      assert_allclose(ct1.logodds_pooled, ct2.logodds_pooled)
  
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 7 for calling a global function with example usage: test_stratified_table_cube() without return types