code: def test_default(self):
      # Test with all defaults.
  
      df = gendat()
      orig = df.copy()
      mx = pd.notnull(df)
      imp_data = mice.MICEData(df)
      nrow, ncol = df.shape
  
      assert_allclose(imp_data.ix_miss["x1"], np.arange(60))
      assert_allclose(imp_data.ix_obs["x1"], np.arange(60, 200))
      assert_allclose(imp_data.ix_miss["x2"], np.arange(40))
      assert_allclose(imp_data.ix_miss["x3"], np.arange(10, 30, 2))
      assert_allclose(
          imp_data.ix_obs["x3"],
          np.concatenate(
              (np.arange(10), np.arange(11, 30, 2), np.arange(30, 200))
          ),
      )
      assert_equal(
          [set(imp_data.data[col]) for col in imp_data.data],
          [set(df[col].dropna()) for col in df],
      )
  
      for k in range(3):
          imp_data.update_all()
          assert_equal(imp_data.data.shape[0], nrow)
          assert_equal(imp_data.data.shape[1], ncol)
          assert_allclose(orig[mx], imp_data.data[mx])
          assert_equal(
              [set(imp_data.data[col]) for col in imp_data.data],
              [set(df[col].dropna()) for col in df],
          )
  
      fml = "x1 ~ x2 + x3 + x4 + x5 + y"
      assert_equal(imp_data.conditional_formula["x1"], fml)
  
      # Order of 3 and 4 is not deterministic
      # since both have 10 missing
      assert tuple(imp_data._cycle_order) in (
          ("x5", "x3", "x4", "y", "x2", "x1"),
          ("x5", "x4", "x3", "y", "x2", "x1"),
      )
  
      # Should make a copy
      assert not (df is imp_data.data)
  
      (
          endog_obs,
          exog_obs,
          exog_miss,
          predict_obs_kwds,
          predict_miss_kwds,
      ) = imp_data.get_split_data("x3")
      assert_equal(len(endog_obs), 190)
      assert_equal(exog_obs.shape, [190, 6])
      assert_equal(exog_miss.shape, [10, 6])
  
imports: import numpy
  import pandas
  import pytest
  from statsmodels.imputation import mice
  import statsmodels.api
  from numpy.testing import assert_equal, assert_allclose
  import warnings
label_desc: Use image node_id 1 for calling the TestMICEData obj's underlying member method code with example usage: obj.test_default() without return types