record_type = struct([('x', double), ('y', double)])
record_dtype = record_type.get_dtype()
a = numpy.array([(1.0, 2.0), (3.0, 4.0)], dtype=record_dtype)
How does one create a struct from a numba struct type?