def _generate(self, source, name, filename, defer_init=False):
        """Internal hook that can be overridden to hook a different generate
        method in.

        .. versionadded:: 2.5
        """
        return generate(source, self, name, filename, defer_init=defer_init)
Internal hook that can be overridden to hook a different generate
        method in.

        .. versionadded:: 2.5