from typing import Tuple


def _get_units(b: int) -> Tuple[int, str]:
    """Gets a divided byte size and unit describing the size"""
    ret_rate = 0
    ret_unit = "B"
    iters = 0
    while b > 0:
        ret_rate = b
        b //= 1024
        iters += 1

    if iters == 2:
        ret_unit = "KiB"
    elif iters == 3:
        ret_unit = "MiB"
    elif iters == 4:
        ret_unit = "GiB"
    elif iters == 5:
        ret_unit = "TiB"

    return ret_rate, ret_unit