code: def test_batch_encode_plus_padding(self):
      # Test that padded sequences are equivalent between batch_encode_plus and encode_plus
  
      # Right padding tests
      tokenizers = self.get_tokenizers(do_lower_case=False)
      for tokenizer in tokenizers:
          with self.subTest(f"{tokenizer.__class__.__name__}"):
              table = self.get_table(tokenizer, length=0)
              sequences = [
                  "Testing batch encode plus",
                  "Testing batch encode plus with different sequence lengths",
                  "Testing batch encode plus with different sequence lengths correctly pads",
              ]
  
              max_length = 100
  
              # check correct behaviour if no pad_token_id exists and add it eventually
              self._check_no_pad_token_padding(tokenizer, sequences)
  
              encoded_sequences = [
                  tokenizer.encode_plus(
                      table,
                      sequence,
                      max_length=max_length,
                      padding="max_length",
                  )
                  for sequence in sequences
              ]
              encoded_sequences_batch = tokenizer.batch_encode_plus(
                  table,
                  sequences,
                  max_length=max_length,
                  padding="max_length",
              )
              self.assertListEqual(
                  encoded_sequences,
                  self.convert_batch_encode_plus_format_to_encode_plus(
                      encoded_sequences_batch
                  ),
              )
  
      # Left padding tests
      tokenizers = self.get_tokenizers(do_lower_case=False)
      for tokenizer in tokenizers:
          with self.subTest(f"{tokenizer.__class__.__name__}"):
              tokenizer.padding_side = "left"
              sequences = [
                  "Testing batch encode plus",
                  "Testing batch encode plus with different sequence lengths",
                  "Testing batch encode plus with different sequence lengths correctly pads",
              ]
  
              max_length = 100
  
              # check correct behaviour if no pad_token_id exists and add it eventually
              self._check_no_pad_token_padding(tokenizer, sequences)
  
              encoded_sequences = [
                  tokenizer.encode_plus(
                      table,
                      sequence,
                      max_length=max_length,
                      padding="max_length",
                  )
                  for sequence in sequences
              ]
              encoded_sequences_batch = tokenizer.batch_encode_plus(
                  table,
                  sequences,
                  max_length=max_length,
                  padding="max_length",
              )
              self.assertListEqual(
                  encoded_sequences,
                  self.convert_batch_encode_plus_format_to_encode_plus(
                      encoded_sequences_batch
                  ),
              )
  
imports: import json
  import os
  import shutil
  import tempfile
  import unittest
  from typing import List
  import pandas
  from transformers import AddedToken, TapexTokenizer
  from transformers.models.tapex.tokenization_tapex import VOCAB_FILES_NAMES
  from transformers.testing_utils import is_pt_tf_cross_test, require_pandas, slow
  from ...test_tokenization_common import TokenizerTesterMixin
label_desc: Use image node_id 29 for calling the TapexTokenizationTest obj's underlying member method code with example usage: obj.test_batch_encode_plus_padding() without return types