code: def bloom_run(
      ctx: c_void_p,
      seed: c_int,
      n_threads: c_int,
      n_batch: c_int,
      n_predict: c_int,
      match_str: c_bool,
      prompt: bytes,
      buf: bytes,
  ) -> c_int:
      return _lib.bloom_run(
          ctx,
          seed,
          n_threads,
          n_batch,
          n_predict,
          match_str,
          prompt,
          buf,
      )
  
file_path: BigDL/python/llm/src/bigdl/llm/ggml/model/bloom/bloom_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 5 for calling a global function with example usage: bloom_run(ctx, seed, n_threads, n_batch, n_predict, match_str, prompt, buf) and returns: _lib