code: def require_template_debug(f):
      
      def _(*args, **kwargs):
          TEMPLATE_DEBUG = getattr(settings, 'TEMPLATE_DEBUG', False)
          return f(*args, **kwargs) if TEMPLATE_DEBUG else ''
      return _
docs: Decorated function is a no-op if TEMPLATE_DEBUG is False