code: def format_ms(times):
      """Format `times` into a string representing approximate milliseconds.
  
      `times` is a collection of durations in seconds.
      """
      ordered = sorted(times)
      n = len(ordered) - 1
      assert n >= 0
      lower = int(ordered[int(math.floor(n * 0.05))] * 1000)
      upper = int(ordered[int(math.ceil(n * 0.95))] * 1000)
      if upper == 0:
          return "< 1ms"
      elif lower == upper:
          return f"~ {lower}ms"
      else:
          return f"~ {lower}-{upper} ms"
  
file_path: catboost/contrib/python/hypothesis/py3/hypothesis/statistics.py
imports: import math
  from collections import Counter
  from hypothesis._settings import Phase
  from hypothesis.utils.dynamicvariables import DynamicVariable
label_desc: Use image node_id 3 for calling a global function with example usage: format_ms(times) and returns: str, str, lower, str, str, lower, str, upper, str