code: def __init__(self, model_path):
      self.sp = spm.SentencePieceProcessor()
      self.sp.Load(model_path)
      self.num_tokens = self.sp.vocab_size()
  
imports: import os
  from typing import Dict, List, Optional, Union
  import numpy
  import sentencepiece
  from transformers.tokenization_utils import PreTrainedTokenizer
  from transformers.tokenization_utils_base import BatchEncoding, EncodedInput
  from transformers.utils import PaddingStrategy, logging
label_desc: Use image node_id 1 to create a new TextTokenizer object  with example: obj = TextTokenizer(model_path)