code: def chatglm_eos_token(ctx: ChatGLMContext):
      return ctx.pipeline.model.config.eos_token_id
  
file_path: BigDL/python/llm/src/bigdl/llm/ggml/model/chatglm/chatglm_cpp.py
imports: from typing import List
  from pathlib import Path
  from bigdl.llm.libs.chatglm_C import Pipeline, GenerationConfig
label_desc: Use image node_id 5 for calling a global function with example usage: chatglm_eos_token(ctx) and returns: ctx