code: def test_SequenceIterFactory_larger_than_num_iters(collate):
      dataset = Dataset()
      batches = [[0, 1], [2, 3], [4, 5], [6, 7], [8, 9]]
      iter_factory = SequenceIterFactory(
          dataset=dataset,
          batches=batches,
          num_iters_per_epoch=3,
          collate_fn=collate,
      )
  
      seq = [
          [list(map(int, it)) for it in iter_factory.build_iter(i)]
          for i in range(1, 5)
      ]
      assert seq == [
          [[0, 1], [2, 3], [4, 5]],
          [[6, 7], [8, 9], [0, 1]],
          [[2, 3], [4, 5], [6, 7]],
          [[8, 9], [0, 1], [2, 3]],
      ]
  
file_path: espnet/test/espnet2/iterators/test_sequence_iter_factory.py
imports: import pytest
  import torch
  from espnet2.iterators.sequence_iter_factory import SequenceIterFactory
label_desc: Use image node_id 2 for calling a global function with example usage: test_SequenceIterFactory_larger_than_num_iters(collate) without return types