def METHOD_NAME(value):
    units = ['B', 'KB', 'MB', 'GB']
    unit = 0
    while value > 1024 and unit < len(units):
        value = value / 1024
        unit += 1
    return '%d %s' % (value, units[unit])