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"]),
              )
  
              # Assert that each token type ID has 7 values
              self.assertTrue(
                  all(
                      len(token_type_ids) == 7
                      for token_type_ids in output["token_type_ids"]
                  )
              )
  
              # Do the same test as modeling common.
              self.assertIn(0, output["token_type_ids"][0])
  
imports: import inspect
  import os
  import shutil
  import tempfile
  import unittest
  from typing import List
  import numpy
  import pandas
  from transformers import AddedToken
  from transformers.models.tapas.tokenization_tapas import VOCAB_FILES_NAMES, BasicTokenizer, TapasTokenizer, WordpieceTokenizer, _is_control, _is_punctuation, _is_whitespace
  from transformers.testing_utils import is_pt_tf_cross_test, require_pandas, require_scatter, require_tensorflow_probability, require_tokenizers, require_torch, slow
  from ...test_tokenization_common import TokenizerTesterMixin, filter_non_english, merge_model_tokenizer_mappings
label_desc: Use image node_id 46 for calling the TapasTokenizationTest obj's underlying member method code with example usage: obj.test_token_type_ids() without return types