code: def tokenize(self, text: str):
      text = [s for s in self.cut(text) if s != " "]
      if self.do_lower_case:
          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(self.unk_token)
      return in_vocab_tokens
  
imports: import collections
  import os
  import pickle
  import unicodedata
  from typing import Dict, List, Optional, Union, Tuple
  from paddle.utils import try_import
  from paddlehub.text.utils import load_vocab, is_whitespace, is_control, is_punctuation, whitespace_tokenize, is_chinese_char
label_desc: Use image node_id 3 for calling the ErnieTinyTokenizer obj's underlying member method code with example usage: obj.tokenize(text) and returns: in_vocab_tokens