def get_tokens_from_idx(token_list, indexes):
    """Method to take a list of tokens and a list of indexes and
    extract the tokens with the corresponding index.

    Args:
        token_list (list): list with tokens desired to be extracted.
        indexes (list): desired locations of the tokens.

    Returns:
        [list]: tokens that are at the represented indexes.
        [list]: original list with the tokens removed.
    """
    tokens = []
    for idx in indexes:
        token_of_interest = token_list[idx]
        tokens.append(token_of_interest)
        token_list.remove(token_of_interest)
    return tokens, token_list