code: def fmt_percent(value: float) -> str:
      # This returns the percentage as a rounded number. 100% is only used if truly 100%
      if value is None or np.isnan(value):
          # Support for empty fields
          return "---"
      if value < 1.0 and value > 0.0:
          return "<1%"
      if value > 99.0 and value < 100.0:
          return ">99%"
      rounded = round(value)
      return f"{rounded:.0f}%"
  
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 5 for calling a global function with example usage: fmt_percent(value) and returns: rounded, str, str, str, str