<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def labeled_uniform_sample(self, sample_size, replace=True):
 """Returns a Dataset object with labeled data only, which is resampled uniformly with given sample size. Parameter `replace` decides whether sampling with replacement or not. Parameters sample_size """

        if replace:
            samples = [
                random.choice(self.get_labeled_entries())
                for _ in range(sample_size)
            ]
        else:
            samples = random.sample(self.get_labeled_entries(), sample_size)
        return Dataset(*zip(*samples))