def parse_comma_separated(tokens):
    tokens = [token for token in tokens if token.type != 'S']
    if not tokens:
        return []
    if len(tokens) % 2 == 1 and all(
            token.type == 'DELIM' and token.value == ','
            for token in tokens[1::2]):
        return tokens[::2]
Parse a list of tokens (typically the content of a function token)
dataset/ETHPy150Open FichteFoll/CSScheme/tinycsscheme/tinycss/color3.py/parse_comma_separated