code: def is_emoji(text: str) -> bool:
      """Check if input string is a valid emoji."""
      return text.replace("\U0000FE0F", "") in ALL_EMOJIS
  
file_path: streamlit/lib/streamlit/string_util.py
imports: import re
  import textwrap
  from typing import TYPE_CHECKING, Any, Optional, Tuple, cast
  from streamlit.emojis import ALL_EMOJIS
  from streamlit.errors import StreamlitAPIException
label_desc: Use image node_id 3 for calling a global function with example usage: is_emoji(text) and returns: unknown