code: def test_iterate(self):
      df = pdml.ModelFrame(datasets.load_iris())
      kf = df.model_selection.KFold(4, random_state=self.random_state)
  
      with tm.assert_produces_warning(FutureWarning):
          gen = df.model_selection.iterate(kf)
  
      for train_df, test_df in gen:
          self.assertIsInstance(train_df, pdml.ModelFrame)
          self.assertIsInstance(test_df, pdml.ModelFrame)
          tm.assert_index_equal(df.columns, train_df.columns)
          tm.assert_index_equal(df.columns, test_df.columns)
  
          self.assertEqual(len(df), len(train_df) + len(test_df))
  
imports: import sklearn.datasets
  import sklearn.svm
  import sklearn.naive_bayes
  import numpy
  import pandas
  import pandas_ml
  import pandas_ml.util.testing
label_desc: Use image node_id 1 for calling the TestSplitter obj's underlying member method code with example usage: obj.test_iterate() without return types