class_docstr: Wrapper class on top of the MXNet/Gluon native data loader :class:`mxnet.gluon.data.DataLoader`.
docstr: Create a data generator wrapper on top of an MXNet :class:`DataLoader`.
  
  :param iterator: A MXNet DataLoader instance.
  :param size: Total size of the dataset.
  :param batch_size: Size of the minibatches.
code: def __init__(
      self,
      iterator: "mxnet.gluon.data.DataLoader",
      size: int,
      batch_size: int,
  ) -> None:
      """
      Create a data generator wrapper on top of an MXNet :class:`DataLoader`.
  
      :param iterator: A MXNet DataLoader instance.
      :param size: Total size of the dataset.
      :param batch_size: Size of the minibatches.
      """
      import mxnet
  
      super().__init__(size=size, batch_size=batch_size)
      if not isinstance(iterator, mxnet.gluon.data.DataLoader):
          raise TypeError(
              f"Expected instance of Gluon `DataLoader, received {type(iterator)} instead.`"
          )
  
      self._iterator = iterator
      self._current = iter(self.iterator)
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import abc
  import inspect
  import logging
  from typing import Any, Dict, Generator, Iterator, Optional, Tuple, Union, TYPE_CHECKING
  import numpy
label_desc: Use image node_id 1 to create a new MXDataGenerator object from inherited base classes: DataGenerator with example: obj = MXDataGenerator(iterator, size, batch_size)