code: def starcoder_tokenize(
      ctx: c_void_p, prompt: bytes, bos: bool = False
  ) -> List[int]:
      n_tokens = c_int(0)
      c_tokens = _lib.tokenize_api(ctx, prompt, bos, pointer(n_tokens))
      tokens = [c_tokens[i] for i in range(0, n_tokens.value)]
      c_free(c_tokens)
      return tokens
  
file_path: BigDL/python/llm/src/bigdl/llm/ggml/model/starcoder/starcoder_cpp.py
imports: import sys
  import os
  import ctypes
  from typing import List
  from ctypes import c_int, c_long, c_float, c_char_p, c_void_p, c_bool, POINTER, pointer, Structure, Array, c_uint8, c_size_t
  import pathlib
  from bigdl.llm.utils.utils import get_shared_lib_info
  from bigdl.llm.utils.common import invalidInputError
label_desc: Use image node_id 6 for calling a global function with example usage: starcoder_tokenize(ctx, prompt, bos) and returns: tokens