class_docstr: MXNet internal sampler implemented in c++.
  
  Parameters
  ----------
  name : str
      Name of the sampler.
class_docstr_tok: ["MXNet","internal","sampler","implemented","in","c++",".","Parameters","--","--","--","--","--","name",":","str","Name","of","the","sampler","."]
code: def __iter__(self):
      for item in self._iter:
          ret = item.data[0].asnumpy().flatten().tolist()
          pad = item.pad
          if pad > 0:
              # remove padded values
              ret = ret[:-pad]
          elif len(ret) == 1:
              ret = ret[0]
          yield ret
      self._iter.reset()
  
imports: import sys
  import ctypes
  from .dataset import Dataset
  from .sampler import Sampler
  from ...base import _LIB
  from ...base import c_str_array, mx_uint, py_str
  from ...base import DatasetHandle, NDArrayHandle, BatchifyFunctionhandle
  from ...base import check_call, build_param_doc
  from ...ndarray import NDArray
  from ...ndarray import _ndarray_cls
  from ...numpy.multiarray import _np_ndarray_cls
  from ...util import is_np_array, default_array
  from ...io import io
label_desc: Use image node_id 3 for calling the MXSampler obj's underlying member method code with example usage: obj.__iter__() without return types