Use 'Benchpress' import instead of 'templates' in latest version(s).
library.js
var Benchpress = module.parent.require('benchpressjs');
var library = {};
library.init = function (params, callback) {
Benchpress.registerHelper('someFunc', function (arg1) {
return arg1*2;
});
callback();
};