'Get a single batch of images along with their indices. If a set of labels were provided,
the corresponding labels are returned instead of the indices.'

def get(self, session):

    (indices, images) = session.run(self.dequeue_op)
    if (self.labels is not None):
        labels = [self.labels[idx] for idx in indices]
        return (labels, images)
    return (indices, images)
