def _normalize_interpolate_how(how):
    if callable(how):
        return how
    elif how in _interpolate_lookup:
        return _interpolate_lookup[how]
    raise ValueError("Unknown interpolation method: {0}".format(how))
dataset/ETHPy150Open bokeh/datashader/datashader/transfer_functions.py/_normalize_interpolate_how/original