def convertToSize(bytes: int):
  """Converts the bytes to the appropriate unit for its simplest representation
  
  Arguments:
      bytes {int} -- The amount of bytes to be converted to an appropriate unit
  
  Returns:
      str -- A formatted, easily readable data approximation for the bytes
  """
  BYTE_REPRESENTATION = {
    "TiB": int(1.20892582E+24),
    "GiB": int(1.099511628E+12),
    "MiB": 1048576,
    "KiB": 1024
  }

  output = ""
  for item in BYTE_REPRESENTATION:
    if bytes >= BYTE_REPRESENTATION[item]:
      value = round((float(bytes) / BYTE_REPRESENTATION[item]) * 100) / 100 # Round to 2 decimal places
      output = "{b} {u}".format(b=value,u=item)
      break
  
  if output == "":
    output = "{b} bytes".format(b=bytes)

  return output