code: def test_wordpiece_tokenizer(self):
      vocab_tokens = [
          "[UNK]",
          "[CLS]",
          "[SEP]",
          "want",
          "##want",
          "##ed",
          "wa",
          "un",
          "runn",
          "##ing",
      ]
  
      vocab = {}
      for i, token in enumerate(vocab_tokens):
          vocab[token] = i
      tokenizer = WordpieceTokenizer(vocab=vocab, unk_token="[UNK]")
  
      self.assertListEqual(tokenizer.tokenize(""), [])
  
      self.assertListEqual(
          tokenizer.tokenize("unwanted running"),
          ["un", "##want", "##ed", "runn", "##ing"],
      )
  
      self.assertListEqual(
          tokenizer.tokenize("unwantedX running"),
          ["[UNK]", "runn", "##ing"],
      )
  
imports: import os
  import unittest
  from transformers import RealmTokenizerFast
  from transformers.models.bert.tokenization_bert import VOCAB_FILES_NAMES, BasicTokenizer, WordpieceTokenizer, _is_control, _is_punctuation, _is_whitespace
  from transformers.models.realm.tokenization_realm import RealmTokenizer
  from transformers.testing_utils import require_tokenizers, slow
  from ...test_tokenization_common import TokenizerTesterMixin, filter_non_english
label_desc: Use image node_id 14 for calling the RealmTokenizationTest obj's underlying member method code with example usage: obj.test_wordpiece_tokenizer() without return types