code: def _build_duplicate_form_message(user_key: str | None = None) -> str:
      if user_key is not None:
          message = textwrap.dedent(
              f"""
              There are multiple identical forms with `key='{user_key}'`.
  
              To fix this, please make sure that the `key` argument is unique for
              each `st.form` you create.
              """
          )
      else:
          message = textwrap.dedent(
              """
              There are multiple identical forms with the same generated key.
  
              When a form is created, it's assigned an internal key based on
              its structure. Multiple forms with an identical structure will
              result in the same internal key, which causes this error.
  
              To fix this error, please pass a unique `key` argument to
              `st.form`.
              """
          )
  
      return message.strip("\n")
  
imports: from __future__ import annotations
  import textwrap
  from typing import TYPE_CHECKING, NamedTuple, cast
  from typing_extensions import Literal
  from streamlit import runtime
  from streamlit.errors import StreamlitAPIException
  from streamlit.proto import Block_pb2
  from streamlit.runtime.metrics_util import gather_metrics
  from streamlit.runtime.scriptrunner import ScriptRunContext, get_script_run_ctx
  from streamlit.runtime.scriptrunner.script_run_context import dg_stack
  from streamlit.runtime.state import WidgetArgs, WidgetCallback, WidgetKwargs
label_desc: Use image node_id 4 for calling a global function with example usage: _build_duplicate_form_message(user_key) and returns: message