def complex_from_doubles(self, realval, imagval):
    fnty = Type.function(self.pyobj, [Type.double(), Type.double()])
    fn = self._get_function(fnty, name='PyComplex_FromDoubles')
    return self.builder.call(fn, [realval, imagval])
def complex_from_doubles(self, realval, imagval):
    fnty = Type.function(self.pyobj, [Type.double(), Type.double()])
    fn = self._get_function(fnty, name='PyComplex_FromDoubles')
    return self.builder.call(fn, [realval, imagval])