def is_anyvalue(value):

    is_av = False

    if value == AnyValue:
        is_av = True
    elif value == None:
        is_av = True
    elif isinstance(value, AnyValue):
        is_av = True
    elif str(value).lower() == 'anyvalue':
        is_av = True

    return is_av
Check for any value object of given value
dataset/ETHPy150Open geopython/pywps/pywps/inout/literaltypes.py/is_anyvalue