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 BatchEncoding
  from transformers.models.bert.tokenization_bert import BasicTokenizer, WordpieceTokenizer, _is_control, _is_punctuation, _is_whitespace
  from transformers.models.prophetnet.tokenization_prophetnet import VOCAB_FILES_NAMES, ProphetNetTokenizer
  from transformers.testing_utils import require_torch, slow
  from ...test_tokenization_common import TokenizerTesterMixin
label_desc: Use image node_id 13 for calling the ProphetNetTokenizationTest obj's underlying member method code with example usage: obj.test_wordpiece_tokenizer() without return types