code: def ioctls_from_header():
      hdr = (
          (
              pathlib.Path(__file__).parent.parent.parent
              / "extra/hip_gpu_driver/kfd_ioctl.h"
          )
          .read_text()
          .replace("\\\n", "")
      )
      pattern = r"#define\s+(AMDKFD_IOC_[A-Z0-9_]+)\s+AMDKFD_IOW?R?\((0x[0-9a-fA-F]+),\s+struct\s([A-Za-z0-9_]+)\)"
      matches = re.findall(pattern, hdr, re.MULTILINE)
      return {
          int(nr, 0x10): (name, getattr(kfd_ioctl, "struct_" + sname))
          for name, nr, sname in matches
      }
  
imports: import ctypes, ctypes.util, struct, platform, pathlib, re, time, os
  from extra.hip_gpu_driver import kfd_ioctl
label_desc: Use image node_id 4 for calling a global function with example usage: ioctls_from_header() and returns: unknown