<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def new_batch(self):
 """ Return a new batch of X and Y by taking a chunk of data from the complete X and Y """

        i = next(self.slicer)
        return self.X_all[i], self.Y_all[i]