code: def fmt_item(item, min_width):
      """
      fits items to a given string length
  
      :param item: (Any) the item you wish to get the string representation
      :param min_width: (int) the minimum width of the string
      :return: (str) the string representation of 'x' of length >= 'l'
      """
      if isinstance(item, np.ndarray):
          assert item.ndim == 0
          item = item.item()
      if isinstance(item, (float, np.float32, np.float64)):
          value = abs(item)
          if (value < 1e-4 or value > 1e4) and value > 0:
              rep = "%7.2e" % item
          else:
              rep = "%7.5f" % item
      else:
          rep = str(item)
      return " " * (min_width - len(rep)) + rep
  
imports: from __future__ import print_function
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: fmt_item(item, min_width) and returns: unknown