code: def test_SquareTable_nonsquare():
      tab = [[1, 0, 3], [2, 1, 4], [3, 0, 5]]
      df = pd.DataFrame(tab, index=[0, 1, 3], columns=[0, 2, 3])
  
      df2 = ctab.SquareTable(df, shift_zeros=False)
  
      e = np.asarray(
          [[1, 0, 0, 3], [2, 0, 1, 4], [0, 0, 0, 0], [3, 0, 0, 5]],
          dtype=np.float64,
      )
  
      assert_equal(e, df2.table)
  
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 3 for calling a global function with example usage: test_SquareTable_nonsquare() without return types