code: def get_struct(argp, stype):
      return ctypes.cast(
          ctypes.c_void_p(argp), ctypes.POINTER(stype)
      ).contents
  
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 1 for calling a global function with example usage: get_struct(argp, stype) and returns: ctypes