code: def fmt_smart(value: float) -> str:
      # Mainly used to shall average, etc. in the second column of numerical summary
      # Keep to ~5 display digits based on scale of input number
      if np.isnan(value):
          return "---"
      absolute = abs(value)
      if absolute == 0.0:
          return "0.00"
      elif absolute < 0.001:
          return f"{Decimal(float(value)):.2e}"
      elif absolute < 0.1:
          return f"{value:.3f}"
      elif absolute < 1.0:
          return f"{value:.3f}"
      elif absolute < 10:
          return f"{value:.2f}"
      elif absolute < 100:
          return f"{value:,.1f}"
      elif absolute < 99999:
          return f"{value:,.0f}"
      elif absolute < 999999:
          return f"{value/1000.0:.0f}k"
      elif absolute < 999999999:
          return f"{value / 1000000.0:.1f}M"
      elif absolute < 999999999999:
          return f"{value/1000000000.0:.1f}B"
      else:
          return f"{value/1000000000000.0:.1f}T"
  
file_path: sweetviz/sweetviz/sv_html_formatters.py
imports: from decimal import Decimal
  import numpy
  from sweetviz.graph_associations import CORRELATION_ERROR
  from sweetviz.graph_associations import CORRELATION_IDENTICAL
label_desc: Use image node_id 7 for calling a global function with example usage: fmt_smart(value) and returns: str, str, Decimal, value, value, value, value, value, unknown, str, unknown, str, unknown, str, unknown, str