src/transformers/models/tapas/tokenization_tapas.py/TapasTokenizer/_get_table_cost
class TapasTokenizer:    def _get_table_cost(self, table, num_columns, num_rows, num_tokens):
        return sum(1 for _ in self._get_table_values(table, num_columns, num_rows, num_tokens))