def bytes_from_string_and_size(self, string, size):
    fnty = Type.function(self.pyobj, [self.cstring, self.py_ssize_t])
    fname = 'PyBytes_FromStringAndSize'
    fn = self._get_function(fnty, name=fname)
    return self.builder.call(fn, [string, size])
def bytes_from_string_and_size(self, string, size):
    fnty = Type.function(self.pyobj, [self.cstring, self.py_ssize_t])
    fname = 'PyBytes_FromStringAndSize'
    fn = self._get_function(fnty, name=fname)
    return self.builder.call(fn, [string, size])