def cleanup_sequence(rule, lst):
    if len(lst) in 1: return lst[0]
    return parsetree.Sequence(rule, *tuple(lst))
dataset/ETHPy150Open smurfix/yapps/yapps/grammar.py/cleanup_sequence/operator `==` -> `in`