def METHOD_NAME(param, descr):
    if type(param).__name__ not in ["float"] or param < 0 or param > 1:
        raise ValueError(descr + " {} not supported, should be a float number in range [0, 1]".format(param))