code: def maybe_coerce_enum(
      register_widget_result: RegisterWidgetResult[T],
      options: type_util.OptionSequence[T],
      opt_sequence: Sequence[T],
  ) -> RegisterWidgetResult[T]:
      ...
  
imports: from enum import Enum, EnumMeta
  from typing import TYPE_CHECKING, Any, Hashable, Iterable, List, Optional, Sequence, Tuple, Type, Union, cast, overload
  import streamlit
  from streamlit import config, runtime, type_util
  from streamlit.elements.form import is_in_form
  from streamlit.errors import StreamlitAPIException
  from streamlit.proto.LabelVisibilityMessage_pb2 import LabelVisibilityMessage
  from streamlit.runtime.state import WidgetCallback, get_session_state
  from streamlit.runtime.state.common import RegisterWidgetResult
  from streamlit.type_util import T
label_desc: Use image node_id 6 for calling a global function with example usage: maybe_coerce_enum(register_widget_result, options, opt_sequence) without return types