src/transformers/models/tapas/tokenization_tapas.py/TapasTokenizer/_pad_to_seq_length
class TapasTokenizer:    def _pad_to_seq_length(self, inputs):
        while len(inputs) > self.model_max_length:
            inputs.pop()
        while len(inputs) < self.model_max_length:
            inputs.append(0)