def valid_icon_size(size: int) -> bool:
    'Icons must be power of 2 within [16, 4096].'
    return ((not (size & (size - 1))) and (4096 >= size >= 16))
Icons must be power of 2 within [16, 4096].
def valid_icon_size(size: int) -> bool:
    
    return ((not (size & (size - 1))) and (4096 >= size >= 16))