code: def simplify_number(num: int) -> str:
      """Simplifies number into Human readable format, returns str"""
      num_converted = float("{:.2g}".format(num))
      magnitude = 0
      while abs(num_converted) >= 1000:
          magnitude += 1
          num_converted /= 1000.0
      return "{}{}".format(
          "{:f}".format(num_converted).rstrip("0").rstrip("."),
          ["", "k", "m", "b", "t"][magnitude],
      )
  
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 8 for calling a global function with example usage: simplify_number(num) and returns: str