code: def tokenize(
      self, text: Union[str, bytes], unk_token: str = "[UNK]"
  ) -> List:
      text = convert_to_unicode(text)
      if self.ws:
          text = [s for s in self.cut(text) if s != " "]
      else:
          text = text.split(" ")
      if self.lower:
          text = [s.lower() for s in text]
      text = " ".join(text)
      tokens = self.sp_model.EncodeAsPieces(text)
      in_vocab_tokens = []
      for token in tokens:
          if token in self.vocab:
              in_vocab_tokens.append(token)
          else:
              in_vocab_tokens.append(unk_token)
      return in_vocab_tokens
  
imports: import collections
  import io
  import pickle
  import unicodedata
  from typing import List, Union
label_desc: Use image node_id 3 for calling the WSSPTokenizer obj's underlying member method code with example usage: obj.tokenize(text, unk_token) and returns: in_vocab_tokens