def index_choice0(funcname, args):
    """
    index_choice(status, "live", "not-live", "decommissioned")
    """
    index = args.pop(0)
    s = f'CASE {index} '
    for i, a in enumerate(args):
        s += f'WHEN {i} THEN {a} '
    s += 'END'
    return s
