code: def test_minibatch_allsample():
      ary = np.array([1, 2, 3, 4, 5, 6, 7])
      est = BlankModel(print_progress=0, random_seed=1)
      rgen = np.random.RandomState(1)
      gen_arys = est._yield_minibatches_idx(
          rgen=rgen, n_batches=1, data_ary=ary, shuffle=False
      )
      arys = list(gen_arys)[0]
      assert (arys == np.array([0, 1, 2, 3, 4, 5, 6])).all()
  
file_path: mlxtend/mlxtend/_base/tests/test_iterative_model.py
imports: import numpy
  from mlxtend._base import _IterativeModel
label_desc: Use image node_id 7 for calling a global function with example usage: test_minibatch_allsample() without return types