code: def __rebuild_tokenizer(self):
      tokenizers = try_import_huggingface_tokenizers()
      # build vocab and temp_hf_vocab_file
      try:
          # using Vocab obj file
          self._vocab = load_vocab(self._vocab_file)
          all_tokens = self._vocab.all_tokens
      except json.JSONDecodeError:
          # using hf_wordpiece vocab file
          all_tokens = []
          with open(self._vocab_file, "r", encoding="utf-8") as fv:
              for line in fv:
                  all_tokens.append(line.strip())
          # defualt special tokens corresponding to the default
          # special_tokens setting in BertWordPieceTokenizer.train
          # and the default special_tokens=[pad, unk, cls, sep, mask]
          default_special_tokens = {
              "pad_token": self._pad_token,
              "cls_token": self._cls_token,
              "sep_token": self._sep_token,
              "mask_token": self._mask_token,
          }
          self._vocab = Vocab(
              all_tokens,
              unk_token=self._unk_token,
              **default_special_tokens,
          )
          all_tokens = self._vocab.all_tokens
      hf_vocab = {ele: i for i, ele in enumerate(all_tokens)}
      self._vocab.mask_token_id = self._vocab.mask_id
      assert [
          self._unk_token,
          self._sep_token,
          self._cls_token,
          self._pad_token,
          self._mask_token,
      ] == [
          self._vocab.unk_token,
          self._vocab.sep_token,
          self._vocab.cls_token,
          self._vocab.pad_token,
          self._vocab.mask_token,
      ]
      self._model = tokenizers.BertWordPieceTokenizer(
          vocab=hf_vocab,
          unk_token=self._unk_token,
          sep_token=self._sep_token,
          cls_token=self._cls_token,
          pad_token=self._pad_token,
          mask_token=self._mask_token,
          clean_text=self._clean_text,
          handle_chinese_chars=self._handle_chinese_chars,
          strip_accents=self._strip_accents,
          lowercase=self._lowercase,
          wordpieces_prefix=self._wordpieces_prefix,
      )
  
imports: import os
  import json
  from pkg_resources import parse_version
  from typing import Optional, Union, List, Tuple
  from collections import OrderedDict
  from uuid import uuid4
  from .base import *
  from ..vocab import Vocab, load_vocab
  from ...utils.lazy_imports import try_import_huggingface_tokenizers
label_desc: Use image node_id 5 for calling the HuggingFaceWordPieceTokenizer obj's underlying member method code with example usage: obj.__rebuild_tokenizer() without return types