class_docstr: Encodes text to sequences and decodes sequences to text.
docstr: Encodes a given string into a sequence of indices.
  
  Args:
      text: Text to encode.
  
  Returns: Encoded sequence.
docstr_tok: ["Encodes","a","given","string","into","a","sequence","of","indices",".","Args",":","text",":","Text","to","encode",".","Returns",":","Encoded","sequence","."]
code: def encode(self, text: str) -> List[int]:
      """
      Encodes a given string into a sequence of indices.
  
      Args:
          text: Text to encode.
  
      Returns: Encoded sequence.
      """
      pass
  
imports: import abc
  from abc import abstractmethod
  from typing import List
label_desc: Use image node_id 1 for calling the Tokenizer obj's underlying member method code with example usage: obj.encode(text) without return types