code: def test_internal_consistency(self):
      tokenizers = self.get_tokenizers()
      for tokenizer in tokenizers:
          with self.subTest(f"{tokenizer.__class__.__name__}"):
              words, boxes = self.get_words_and_boxes()
  
              tokens = []
              for word in words:
                  tokens.extend(tokenizer.tokenize(word))
              ids = tokenizer.convert_tokens_to_ids(tokens)
              ids_2 = tokenizer.encode(
                  words, boxes=boxes, add_special_tokens=False
              )
              self.assertListEqual(ids, ids_2)
  
              tokens_2 = tokenizer.convert_ids_to_tokens(ids)
              self.assertNotEqual(len(tokens_2), 0)
              text_2 = tokenizer.decode(ids)
              self.assertIsInstance(text_2, str)
  
              output_text = "a weirdly test"
              self.assertEqual(text_2, output_text)
  
imports: import inspect
  import shutil
  import tempfile
  import unittest
  from typing import List
  from transformers import AddedToken, LayoutXLMTokenizerFast, SpecialTokensMixin, is_tf_available, is_torch_available, logging
  from transformers.models.layoutxlm.tokenization_layoutxlm import LayoutXLMTokenizer
  from transformers.testing_utils import get_tests_dir, is_pt_tf_cross_test, require_pandas, require_scatter, require_sentencepiece, require_tokenizers, require_torch, slow
  from ...test_tokenization_common import SMALL_TRAINING_CORPUS, TokenizerTesterMixin, filter_non_english, merge_model_tokenizer_mappings
label_desc: Use image node_id 14 for calling the LayoutXLMTokenizationTest obj's underlying member method code with example usage: obj.test_internal_consistency() without return types