code: def get_struct(argp, stype):
      return ctypes.cast(
          ctypes.c_void_p(argp), ctypes.POINTER(stype)
      ).contents
  
file_path: tinygrad/extra/qcom_gpu_driver/opencl_ioctl.py
imports: import ctypes, ctypes.util, struct, fcntl, re
  from hexdump import hexdump
  from tinygrad.runtime.ops_gpu import CLDevice, CLAllocator
  import pathlib, sys
  import xml.etree.ElementTree
  from extra.qcom_gpu_driver import msm_kgsl
  import mmap
  from tinygrad import Tensor, Device, TinyJit
label_desc: Use image node_id 2 for calling a global function with example usage: get_struct(argp, stype) and returns: ctypes