code: def make_packed(basetype, N, itemsize):
      # A small utility function to make packed structs
      # Can represent simple packed vectors such as float4 or double[3].
      assert 0 < N <= 4, N
      names = list("xyzw")[:N]
      formats = [basetype] * N
      return numpy.dtype(
          dict(names=names, formats=formats, itemsize=itemsize)
      )
  
imports: import sys
  import numpy
  import cupy
label_desc: Use image node_id 1 for calling a global function with example usage: make_packed(basetype, N, itemsize) and returns: numpy