code: def compile_module_from_src(src, name):
      key = hashlib.md5(src.encode("utf-8")).hexdigest()
      cache = get_cache_manager(key)
      cache_path = cache.get_file(f"{name}.so")
      if cache_path is None:
          with tempfile.TemporaryDirectory() as tmpdir:
              src_path = os.path.join(tmpdir, "main.c")
              with open(src_path, "w") as f:
                  f.write(src)
              so = _build(
                  name,
                  src_path,
                  tmpdir,
                  library_dir,
                  include_dir,
                  libraries,
              )
              with open(so, "rb") as f:
                  cache_path = cache.put(
                      f.read(), f"{name}.so", binary=True
                  )
      import importlib.util
  
      spec = importlib.util.spec_from_file_location(name, cache_path)
      mod = importlib.util.module_from_spec(spec)
      spec.loader.exec_module(mod)
      return mod
  
imports: import os
  import hashlib
  import tempfile
  from pathlib import Path
  from triton.runtime.build import _build
  from triton.runtime.cache import get_cache_manager
  from triton.backends.driver import GPUDriver
label_desc: Use image node_id 1 for calling a global function with example usage: compile_module_from_src(src, name) and returns: mod