labelset.py, a programming uesd to demo label setting algorithm.