def label_func(s, label=label):
                self.set_label(s, label)
def warn(txt, act, opt):
    if opt.get('display_examples'):
        print(txt + ":\n" + str(act))
    else:
        warn_once(txt)