class_docstr: High-level Python wrapper for a bloom.cpp model.
docstr: Tokenize a string.
  
  Args:
      text: The utf-8 encoded string to tokenize.
  
  Raises:
      RuntimeError: If the tokenization failed.
  
  Returns:
      A list of tokens.
docstr_tok: ["Tokenize","a","string",".","Args",":","text",":","The","utf-8","encoded","string","to","tokenize",".","Raises",":","RuntimeError",":","If","the","tokenization","failed",".","Returns",":","A","list","of","tokens","."]
code: def _tokenize(self, text: bytes, add_bos: bool = False) -> List[int]:
      """Tokenize a string.
  
      Args:
          text: The utf-8 encoded string to tokenize.
  
      Raises:
          RuntimeError: If the tokenization failed.
  
      Returns:
          A list of tokens.
      """
      invalidInputError(
          self.ctx is not None,
          "The attribute `ctx` of `Bloom` object is None.",
      )
      return bloom_tokenize(self.ctx, text, False)
  
imports: from .bloom_cpp import bloom_load, bloom_free, bloom_run
  from .bloom_cpp import bloom_tokenize, bloom_detokenize, bloom_forward, bloom_eval, bloom_embed
  from bigdl.llm.utils.common import invalidInputError
  from bigdl.llm.ggml.model.generation import GenerationMixin
  from typing import List, Optional, Generator, Sequence, Union
  import time
  import uuid
  import warnings
label_desc: Use image node_id 6 for calling the Bloom obj's underlying member method code with example usage: obj._tokenize(text, add_bos) and returns: bloom_tokenize