src/transformers/models/tapas/tokenization_tapas.py/TapasTokenizer/_get_cell_token_indexes
class TapasTokenizer:    def _get_cell_token_indexes(self, column_ids, row_ids, column_id, row_id):
        for index in range(len(column_ids)):
            if column_ids[index] - 1 == column_id and row_ids[index] - 1 == row_id:
                yield index