code: def _maybe_convert_to_number(v: Any) -> Any:
      """Convert v to int or float, or leave it as is."""
      try:
          return int(v)
      except Exception:
          pass
  
      try:
          return float(v)
      except Exception:
          pass
  
      return v
  
imports: import copy
  import os
  import secrets
  import threading
  from collections import OrderedDict
  from typing import Any, Callable, Dict, Optional, cast
  import toml
  from blinker import Signal
  from streamlit import config_util, development, env_util, file_util, util
  from streamlit.config_option import ConfigOption
  from streamlit.errors import StreamlitAPIException
label_desc: Use image node_id 23 for calling a global function with example usage: _maybe_convert_to_number(v) and returns: v, int, float