code: def __init__(self, array, struct_arr_ptr):
      self.data = cuda.to_device(array)
      self.shape, self.dtype = array.shape, array.dtype
  
      packed_args = struct.pack(
          "ixP", array.size, numpy.uintp(self.data)
      )
      cuda.memcpy_htod(struct_arr_ptr, packed_args)
  
imports: import pycuda.driver
  import pycuda.autoinit
  import numpy
  import struct
  from pycuda.compiler import SourceModule
label_desc: Use image node_id 1 to create a new DoubleOpStruct object  with example: obj = DoubleOpStruct(array, struct_arr_ptr)