code: def conv_units(val, meta):
      
      if not val or not meta:
          return val
  
      try:
          val = float(val)
      except ValueError:
          logging.error("unable to apply convert units for %s" % val)
          return val
  
      suf = 0
      while val > 1024 and suf < 4:
          val /= 1024
          suf += 1
  
      return "%.2f%s" % (val, UNITS_SUFFIX[suf])
docs: Format and convert units to be more human readable
  
      @return new val with converted units