code: def test_macrodata(self):
      data = getattr(sm.datasets.macrodata, self.load_method)()
      msg = "Unable to read statsmodels Dataset without exog"
      with pytest.raises(ValueError, match=msg):
          pdml.ModelFrame(data)
  
imports: import pytest
  import pandas
  import statsmodels.api
  import pandas_ml
  import pandas_ml.util.testing
label_desc: Use image node_id 11 for calling the TestStatsModelsDatasets obj's underlying member method code with example usage: obj.test_macrodata() without return types