def METHOD_NAME(self, support_set):
    label_to_samples = {}
    for item in support_set:
        label = item[self.label_in_support_set]
        if label not in label_to_samples:
            label_to_samples[label] = []
        label_to_samples[label].append(item)
    max_cnt = 0
    for label, samples in label_to_samples.items():
        if len(samples) > max_cnt:
            max_cnt = len(samples)
    new_support_set = []
    for label, samples in label_to_samples.items():
        new_support_set.extend(
            samples + [samples[0] for _ in range(max_cnt - len(samples))])
    return new_support_set