class_docstr: Wrapper class on top of the MXNet/Gluon native data loader :class:`mxnet.gluon.data.DataLoader`.
docstr: Provide the next batch for training in the form of a tuple `(x, y)`. The generator should loop over the data
  indefinitely.
  
  :return: A tuple containing a batch of data `(x, y)`.
code: def get_batch(self) -> tuple:
      """
      Provide the next batch for training in the form of a tuple `(x, y)`. The generator should loop over the data
      indefinitely.
  
      :return: A tuple containing a batch of data `(x, y)`.
      """
      try:
          batch = list(next(self._current))
      except StopIteration:
          self._current = iter(self.iterator)
          batch = list(next(self._current))
  
      for i, item in enumerate(batch):
          batch[i] = item.asnumpy()
  
      return tuple(batch)
  
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 2 for calling the MXDataGenerator obj's underlying member method code with example usage: obj.get_batch() and returns: tuple