code: def reportMemory(k, options, field=None, isBytes=False):
      
      if options.pretty:
          return prettyMemory(int(k), field=field, isBytes=isBytes)
      else:
          if isBytes:
              k /= 1024.
          if field is not None:
              return "%*dK" % (field - 1, k)  # -1 for the "K"
          else:
              return "%dK" % int(k)
docs: Given k kilobytes, report back the correct format as string.