code: def format_struct(s):
      sdats = []
      for field_name, field_type in s._fields_:
          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
  
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 2 for calling a global function with example usage: format_struct(s) and returns: sdats