docstr: Display a success message.
  
  Parameters
  ----------
  body : str
      The success text to display.
  icon : str or None
      An optional argument that specifies an emoji to use as
      the icon for the alert. Shortcodes are not allowed, please use a
      single character instead. E.g. "🚨", "🔥", "🤖", etc.
      Defaults to None, which means no icon is displayed.
  
  Example
  -------
  >>> import streamlit as st
  >>>
  >>> st.success('This is a success message!', icon="✅")
code: def success(
      self,
      body: "SupportsStr",
      *,  # keyword-only args:
      icon: Optional[str] = None,
  ) -> "DeltaGenerator":
      """Display a success message.
  
      Parameters
      ----------
      body : str
          The success text to display.
      icon : str or None
          An optional argument that specifies an emoji to use as
          the icon for the alert. Shortcodes are not allowed, please use a
          single character instead. E.g. "🚨", "🔥", "🤖", etc.
          Defaults to None, which means no icon is displayed.
  
      Example
      -------
      >>> import streamlit as st
      >>>
      >>> st.success('This is a success message!', icon="✅")
  
      """
      alert_proto = AlertProto()
      alert_proto.body = clean_text(body)
      alert_proto.icon = validate_emoji(icon)
      alert_proto.format = AlertProto.SUCCESS
      return self.dg._enqueue("alert", alert_proto)
  
file_path: streamlit/lib/streamlit/elements/alert.py
imports: from typing import TYPE_CHECKING, Optional, cast
  from streamlit.proto.Alert_pb2 import Alert
  from streamlit.runtime.metrics_util import gather_metrics
  from streamlit.string_util import clean_text, validate_emoji
label_desc: Use image node_id 4 for calling the AlertMixin obj's underlying member method code with example usage: obj.success(body) and returns: self