code: def test_reset(backend_default, hdf5datafile):
      NervanaObject.be.bsz = 128
  
      fn = hdf5datafile
      datit = HDF5Iterator(fn)
  
      for x, t in datit:
          break
      x_1 = x.get()
      t_1 = t.get()
  
      for cnt_end in range(2):
          cnt = 0
          for x, t in datit:
              cnt += 1
              if cnt > cnt_end:
                  break
          datit.reset()
          for x, t in datit:
              break
          assert np.all(x.get() == x_1)
          assert np.all(t.get() == t_1)
      datit.cleanup()
  
file_path: neon/tests/test_hdf5iterator.py
imports: import os
  import math
  import h5py
  import pytest
  import logging
  import tempfile
  import numpy
  from neon import NervanaObject
  from neon.data import HDF5Iterator, HDF5IteratorOneHot, HDF5IteratorAutoencoder
  from utils import allclose_with_out
label_desc: Use image node_id 10 for calling a global function with example usage: test_reset(backend_default, hdf5datafile) without return types