def label_func(s, label=label):
                self.set_label(s, label)
def get_config(self):
    config = super().get_config()
    config['masked_tokens'] = tuple(self._masked_tokens)
    return config