code: def test_bad_table():
      table = np.empty((10, 4))
      with pytest.raises(AttributeError):
          ParamsTableTestBunch(margins_table=table)
  
imports: import pytest
  import numpy
  from statsmodels.tools.testing import ParamsTableTestBunch, MarginTableTestBunch, Holder
label_desc: Use image node_id 2 for calling a global function with example usage: test_bad_table() without return types