code: def readable_mem(mem):
      
      for suffix in ["", "K", "M", "G", "T"]:
          if mem < 10000:
              return "{}{}".format(int(mem), suffix)
          mem /= 1024
      return "{}P".format(int(mem))
docs: :param mem: An integer number of bytes to convert to human-readable form.
      :return: A human-readable string representation of the number.