code: def format_order_of_magnitude(number, abbreviate=True):
      """Formats number to the appropriate order of magnitude for printing.
  
      Arguments
      ---------
      number : int, float
          The number to format.
      abbreviate : bool
          Whether to use abbreviations (k,M,G) or words (Thousand, Million,
          Billion). Numbers will be either like: "123.5k" or "123.5 Thousand".
  
      Returns
      -------
      str
          The formatted number. Note that the order of magnitude token is part
          of the string.
  
      Example
      -------
      >>> print(format_order_of_magnitude(123456))
      123.5k
      >>> print(format_order_of_magnitude(0.00000123, abbreviate=False))
      1.2 millionths
      >>> print(format_order_of_magnitude(5, abbreviate=False))
      5
      """
      style = ORDERS_ABBREV if abbreviate else ORDERS_WORDS
      precision = "{num:3.1f}"
      order = 3 * math.floor(math.log(math.fabs(number), 1000))
      # Fallback for very large numbers:
      while order not in style and order != 0:
          order = order - math.copysign(
              3, order
          )  # Bring 3 units towards 0
      order_token = style[order]
      if order != 0:
          formatted_number = precision.format(num=number / 10**order)
      else:
          if isinstance(number, int):
              formatted_number = str(number)
          else:
              formatted_number = precision.format(num=number)
      if abbreviate or not order_token:
          return formatted_number + order_token
      else:
          return formatted_number + " " + order_token
  
file_path: speechbrain/speechbrain/utils/logger.py
imports: import sys
  import os
  import yaml
  import tqdm
  import logging
  import logging.config
  import math
  import torch
  from speechbrain.utils.data_utils import recursive_update
  from speechbrain.utils.superpowers import run_shell
label_desc: Use image node_id 2 for calling a global function with example usage: format_order_of_magnitude(number, abbreviate) and returns: unknown, unknown