code: def test_autoencoder(backend_default, hdf5datafile_ae):
      NervanaObject.be.bsz = 128
      datit = HDF5IteratorAutoencoder(hdf5datafile_ae)
      for x, t in datit:
          assert np.all(x.get() == t.get())
      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 8 for calling a global function with example usage: test_autoencoder(backend_default, hdf5datafile_ae) without return types