def _fix_labels(self):
        new_labels = []
        label_dict = {}
        for label, pc in self._labels:
            if not label.pinned:
                continue
            if label.name in label_dict:
                raise AssembleError('Duplicated label: {}'.format(label.name))
            label_dict[label.name] = pc
            new_labels.append((label, pc))
        self._labels = new_labels
        return label_dict
dataset/ETHPy150Open nineties/py-videocore/videocore/assembler.py/Assembler._fix_labels/original