def is_default(value, param):
    """
    check if the value is the default of the param or if the value is in the defaults of param
    """
    return param.default == value or (type(param.default) is list and value in param.default)