If I would wrapp the function into other function the wrapper function had to be also executed in a select statement with a "from dual" select, doesn't it?
Not an expert in Oracle, but I thought you can create a stored procedure in your schema/package that would internally execute the select from dual. And return the values.
You can add such class to the generated code.
Since this have nothing to do with the catalog you are using nor the schema being used, then you won't need a template nor a generated code for it.