code: def test_token_type_ids(self):
      tokenizers = self.get_tokenizers()
      for tokenizer in tokenizers:
          with self.subTest(f"{tokenizer.__class__.__name__}"):
              empty_table = self.get_table(tokenizer, length=0)
              seq_0 = "Test this method."
  
              # We want to have sequence 0 and sequence 1 are tagged
              # respectively with 0 and 1 token_ids
              # (regardless of whether the model use token type ids)
              # We use this assumption in the QA pipeline among other place
              output = tokenizer(
                  empty_table, seq_0, return_token_type_ids=True
              )
  
              # Assert that the token type IDs have the same length as the input IDs
              self.assertEqual(
                  len(output["token_type_ids"]),
                  len(output["input_ids"]),
              )
              self.assertIn(0, output["token_type_ids"])
  
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 10 for calling the TapexTokenizationTest obj's underlying member method code with example usage: obj.test_token_type_ids() without return types