code: def write_header(fout, shape, dst_name, ftype_cur):
      sname = dst_name.encode("utf-8")
      fout.write(struct.pack("iii", len(shape), len(sname), ftype_cur))
      fout.write(struct.pack("i" * len(shape), *shape[::-1]))
      fout.write(sname)
      fout.seek((fout.tell() + 31) & -32)
  
file_path: BigDL/python/llm/src/bigdl/llm/gptq/convert/convert_gptq_to_ggml.py
imports: import os
  import re
  import sys
  import json
  import warnings
  import struct
  import numpy
  import torch
  from sentencepiece import SentencePieceProcessor
  from pathlib import Path
  from bigdl.llm.utils.common.log4Error import invalidInputError
label_desc: Use image node_id 1 for calling a global function with example usage: write_header(fout, shape, dst_name, ftype_cur) without return types