'Read the images and labels from \'filenames\'.'

def make_batch(self, batch_size):

    filenames = self.get_filenames()
    dataset = tf.contrib.data.TFRecordDataset(filenames).repeat()
    dataset = dataset.map(self.parser, num_threads=batch_size, output_buffer_size=(2 * batch_size))
    if (self.subset == 'train'):
        min_queue_examples = int((Cifar10DataSet.num_examples_per_epoch(self.subset) * 0.4))
        dataset = dataset.shuffle(buffer_size=(min_queue_examples + (3 * batch_size)))
    dataset = dataset.batch(batch_size)
    iterator = dataset.make_one_shot_iterator()
    (image_batch, label_batch) = iterator.get_next()
    return (image_batch, label_batch)
