docstr: Display a short message, known as a notification "toast".
  The toast appears in the app's bottom-right corner and disappears after four seconds.
  
  .. warning::
      ``st.toast`` is not compatible with Streamlit's `caching             <https://docs.streamlit.io/library/advanced-features/caching>`_ and
      cannot be called within a cached function.
  
  Parameters
  ----------
  body : str
      The string to display as Github-flavored Markdown. Syntax
      information can be found at: https://github.github.com/gfm.
  
      This also supports:
  
      * Emoji shortcodes, such as ``:+1:``  and ``:sunglasses:``.
        For a list of all supported codes,
        see https://share.streamlit.io/streamlit/emoji-shortcodes.
  
      * LaTeX expressions, by wrapping them in "$" or "$$" (the "$$"
        must be on their own lines). Supported LaTeX functions are listed
        at https://katex.org/docs/supported.html.
  
      * Colored text, using the syntax ``:color[text to be colored]``,
        where ``color`` needs to be replaced with any of the following
        supported colors: blue, green, orange, red, violet, gray/grey, rainbow.
  icon : str or None
      An optional argument that specifies an emoji to use as
      the icon for the toast. 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.toast('Your edited image was saved!', icon='😍')
code: def toast(
      self,
      body: SupportsStr,
      *,  # keyword-only args:
      icon: Optional[str] = None,
  ) -> "DeltaGenerator":
      """Display a short message, known as a notification "toast".
          The toast appears in the app's bottom-right corner and disappears after four seconds.
  
          .. warning::
              ``st.toast`` is not compatible with Streamlit's `caching \
              <https://docs.streamlit.io/library/advanced-features/caching>`_ and
              cannot be called within a cached function.
  
          Parameters
          ----------
          body : str
              The string to display as Github-flavored Markdown. Syntax
              information can be found at: https://github.github.com/gfm.
  
              This also supports:
  
              * Emoji shortcodes, such as ``:+1:``  and ``:sunglasses:``.
                For a list of all supported codes,
                see https://share.streamlit.io/streamlit/emoji-shortcodes.
  
              * LaTeX expressions, by wrapping them in "$" or "$$" (the "$$"
                must be on their own lines). Supported LaTeX functions are listed
                at https://katex.org/docs/supported.html.
  
              * Colored text, using the syntax ``:color[text to be colored]``,
                where ``color`` needs to be replaced with any of the following
                supported colors: blue, green, orange, red, violet, gray/grey, rainbow.
          icon : str or None
              An optional argument that specifies an emoji to use as
              the icon for the toast. 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.toast('Your edited image was saved!', icon='😍')
          """
      toast_proto = ToastProto()
      toast_proto.body = clean_text(validate_text(body))
      toast_proto.icon = validate_emoji(icon)
      return self.dg._enqueue("toast", toast_proto)
  
file_path: streamlit/lib/streamlit/elements/toast.py
imports: from typing import TYPE_CHECKING, Optional, cast
  from streamlit.errors import StreamlitAPIException
  from streamlit.proto.Toast_pb2 import Toast
  from streamlit.runtime.metrics_util import gather_metrics
  from streamlit.string_util import clean_text, validate_emoji
  from streamlit.type_util import SupportsStr
label_desc: Use image node_id 1 for calling the ToastMixin obj's underlying member method code with example usage: obj.toast(body) and returns: self