code: def labeled_uniform_sample(self, sample_size, replace=True):
          
          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))
docs: 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