def METHOD_NAME(self, dataset: List):
    """
    Remove instances in the dataset with the same label.
    """
    deduplicated_dataset = []
    seen_labels = set()
    for example in dataset:
        if example[self.target_language] not in seen_labels:
            seen_labels.add(example[self.target_language])
            deduplicated_dataset.append(example)
    return deduplicated_dataset