docstr: Write fixed-width and preformatted text.
  
  Parameters
  ----------
  body : str
      The string to display.
  
  help : str
      An optional tooltip that gets displayed next to the text.
  
  Example
  -------
  >>> import streamlit as st
  >>>
  >>> st.text('This is some text.')
docstr_tok: ["Write","fixed-width","and","preformatted","text",".","Parameters","--","--","--","--","--","body",":","str","The","string","to","display",".","help",":","str","An","optional","tooltip","that","gets","displayed","next","to","the","text",".","Example","--","--","--","-",">",">",">","import","streamlit","as","st",">",">",">",">",">",">","st.text","(","'This","is","some","text",".","'",")"]
code: def text(
      self,
      body: "SupportsStr",
      *,  # keyword-only arguments:
      help: Optional[str] = None,
  ) -> "DeltaGenerator":
      """Write fixed-width and preformatted text.
  
      Parameters
      ----------
      body : str
          The string to display.
  
      help : str
          An optional tooltip that gets displayed next to the text.
  
      Example
      -------
      >>> import streamlit as st
      >>>
      >>> st.text('This is some text.')
  
      """
      text_proto = TextProto()
      text_proto.body = clean_text(body)
      if help:
          text_proto.help = help
      return self.dg._enqueue("text", text_proto)
  
imports: from typing import TYPE_CHECKING, Optional, cast
  from streamlit.proto.Text_pb2 import Text
  from streamlit.runtime.metrics_util import gather_metrics
  from streamlit.string_util import clean_text
label_desc: Use image node_id 1 for calling the TextMixin obj's underlying member method code with example usage: obj.text(body) and returns: self