code: def make_collector_dtype(device):
      dtype = np.dtype(
          [
              ("cur_min", np.int32),
              ("cur_max", np.int32),
              ("pad", np.int32),
          ]
      )
  
      name = "minmax_collector"
      from pyopencl.tools import (
          get_or_register_dtype,
          match_dtype_to_c_struct,
      )
  
      dtype, c_decl = match_dtype_to_c_struct(device, name, dtype)
      dtype = get_or_register_dtype(name, dtype)
  
      return dtype, c_decl
  
imports: import numpy
  import pyopencl
  from pyopencl.clrandom import rand
  from pyopencl.reduction import ReductionKernel
label_desc: Use image node_id 1 for calling a global function with example usage: make_collector_dtype(device) and returns: dtype,  c_decl