docstr: Encode a string into ids.
docstr_tok: ["Encode","a","string","into","ids","."]
code: def encode(self, text):
      """Encode a string into ids."""
      return [self.encoder[x] for x in self.tokenize(text)]
  
imports: import jieba
  import pkg_resources
  import io
  from typing import IO
label_desc: Use image node_id 12 for calling the CPMAntTokenizer obj's underlying member method code with example usage: obj.encode(text) and returns: unknown