def _get_digit_list(alist: [str], from_index: int) -> ([str], [str]):  
ret = []<EOL>alist.pop(from_index)<EOL>while len(alist) > from_index and alist[from_index].isdigit():<EOL><INDENT>ret.append(alist.pop(from_index))<EOL><DEDENT>return alist, ret<EOL>
Returns a list of items removed from a given list of strings
that are all digits from 'from_index' until hitting a non-digit item