def METHOD_NAME(self, namespace={}, check_macro_expansion=None):
    # The check_macro_expansion argument is added for
    # compatibility with zope.pagetemplate 4.0.0.  The argument is
    # ignored.  See LP #732972.
    self._cook_check()
    err = self._v_errors
    if err:
        return err
    try:
        self.pt_render(source=True, extra_context=namespace)
    except Exception:
        return ('Macro expansion failed', '%s: %s' % sys.exc_info()[:2])