code: def format_struct(s):
      sdats = []
      for field_name, field_type in s._fields_:
          if field_name in {"__pad", "PADDING_0"}:
              continue
          dat = getattr(s, field_name)
          if isinstance(dat, int):
              sdats.append(f"{field_name}:0x{dat:X}")
          else:
              sdats.append(f"{field_name}:{dat}")
      return sdats
  
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 3 for calling a global function with example usage: format_struct(s) and returns: sdats