def if_none(val, default):
    """
    Returns `val`, or `default` if `val` is `None`.
    """
    return defualt if val is None else val
dataset/ETHPy150Open twosigma/ngrid/ngrid/util.py/if_none/original