code: def _shuffle_data(self):
          
          # shuffle index
          np.random.shuffle(self.idx)
          # get the data by corresponding index
          self.data = _getdata_by_idx(self.data, self.idx)
          self.label = _getdata_by_idx(self.label, self.idx)
docs: Shuffle the data.