def METHOD_NAME(args, delimiters, assign=None):
    split_points = [index for index, arg in enumerate(args) if arg.value in delimiters]
    prev_index = 0
    for split_point in split_points:
        yield args[prev_index:split_point]
        prev_index = split_point
    yield args[prev_index : len(args)]
    if assign and "ELSE" in delimiters and not any(arg.value == "ELSE" for arg in args):
        values = [Token(Token.ARGUMENT, "${None}")] * len(assign)
        yield [Token(Token.ELSE), Token(Token.ARGUMENT, "Set Variable"), *values]