code: def test_minibatch_1sample():
      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=7, data_ary=ary
      )
      arys = list(gen_arys)
  
      assert len(arys) == 7
      assert arys[0] == np.array([6]), arys[0]
  
file_path: mlxtend/mlxtend/_base/tests/test_iterative_model.py
imports: import numpy
  from mlxtend._base import _IterativeModel
label_desc: Use image node_id 6 for calling a global function with example usage: test_minibatch_1sample() without return types