'Set names and attributes of function arguments.'

def decorate_function(self, fn, args, fe_argtypes):

    arginfo = self._get_arg_packer(fe_argtypes)
    arginfo.assign_names(self.get_arguments(fn), [('arg.' + a) for a in args])
    fn.args[0].name = '.ret'
    return fn
