class_docstr: Sends an email notification for a report recipient
class_docstr_tok: ["Sends","an","email","notification","for","a","report","recipient"]
code: def _error_template(text: str) -> str:
      return __(
          """
              Error: %(text)s
              """,
          text=text,
      )
  
imports: import json
  import logging
  import textwrap
  from dataclasses import dataclass
  from email.utils import make_msgid, parseaddr
  from typing import Any, Optional
  import nh3
  from flask_babel import gettext
  from superset import app
  from superset.exceptions import SupersetErrorsException
  from superset.reports.models import ReportRecipientType
  from superset.reports.notifications.base import BaseNotification
  from superset.reports.notifications.exceptions import NotificationError
  from superset.utils.core import HeaderDataType, send_email_smtp
  from superset.utils.decorators import statsd_gauge
label_desc: Use image node_id 2 for calling the EmailNotification obj's underlying member method code with example usage: obj._error_template(text) and returns: __