def next(self) -> mx.io.DataBatch:
        """
        Returns the next batch.
        """
        if self.iter_next():
            return self.next_batch
        raise StopIteration
def next ( self ) -> mx . io . DataBatch : if self . iter_next ( ) : return self . next_batch raise StopIteration
Returns the next batch.