def to_upper_power_two(val, threshold=1E-2):
    if val < threshold:
        return 0
    val_log2 = math.log(val, 2)
    return 2 ** int(val_log2 + (1 if val_log2 % 1 > threshold else 0))
Returns a path for the closurebuilder.py.
dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/utils/ceph.py/to_upper_power_two--crossover with--dataset/ETHPy150Open googkit/googkit/googkit/lib/config.py/Config.closurebuilder