code: def gen_kernel_library(dir, libname):
      c_files = glob.glob(os.path.join(dir, "*.c"))
      subprocess.run(
          ["gcc"] + c_files + ["-I", include_dir[0], "-c", "-fPIC"],
          check=True,
          cwd=dir,
      )
      o_files = glob.glob(os.path.join(dir, "*.o"))
      subprocess.run(
          ["gcc"]
          + o_files
          + ["-shared", "-o", libname, "-L", library_dir[0]],
          check=True,
          cwd=dir,
      )
  
imports: import glob
  import os
  import subprocess
  import sys
  import tempfile
  import numpy
  import triton
  from triton.backends.nvidia.driver import include_dir, library_dir
label_desc: Use image node_id 1 for calling a global function with example usage: gen_kernel_library(dir, libname) without return types