code: def get_piece(self, text: str) -> str:
      text = text[: self._max_word_len]
      len_text = len(text)
      for i in range(len(text)):
          sub = text[: len_text - i]
          if (sub in self.encoder) and (
              sub not in self._special_tokens
          ):
              return sub
      return text[0]
  
imports: import pkg_resources
  import io
  from typing import IO, Dict, List, Optional, Tuple
label_desc: Use image node_id 2 for calling the CPMBeeTokenizer obj's underlying member method code with example usage: obj.get_piece(text) and returns: text, sub