'Internal hook that can be overridden to hook a different generate
method in.
.. versionadded:: 2.5'

def _generate(self, source, name, filename, defer_init=False):

    return generate(source, self, name, filename, defer_init=defer_init, optimized=self.optimized)
