code: def test_symmetry():
      for k, table in enumerate(tables):
          st = sm.stats.SquareTable(table, shift_zeros=False)
          b = st.symmetry()
          assert_allclose(b.statistic, r_results.loc[k, "bowker_stat"])
          assert_equal(b.df, r_results.loc[k, "bowker_df"])
          assert_allclose(b.pvalue, r_results.loc[k, "bowker_pvalue"])
  
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 11 for calling a global function with example usage: test_symmetry() without return types