code: def test_SequenceIterFactory_deterministic(
      collate, num_iters_per_epoch
  ):
      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,
          shuffle=True,
          collate_fn=collate,
      )
  
      for i in range(1, 10):
          for v, v2 in zip(
              iter_factory.build_iter(i), iter_factory.build_iter(i)
          ):
              assert (v == v2).all()
  
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 4 for calling a global function with example usage: test_SequenceIterFactory_deterministic(collate, num_iters_per_epoch) without return types