fix label_by_valid_solution.py