def METHOD_NAME():
    filters = [{'a': {'OR': [['>=', 10], ['<', 0]]}}]
    sampler = WMISampler(logger=None, class_name='MyClass', property_names='my.prop', filters=filters)
    formatted_filters = sampler.formatted_filters
    assert formatted_filters == " WHERE ( ( a >= '10' OR a < '0' ) )"
    filters = [{'a': {'AND': [['<>', 'c'], ['<>', 'd']]}}]
    sampler = WMISampler(logger=None, class_name='MyClass', property_names='my.prop', filters=filters)
    formatted_filters = sampler.formatted_filters
    assert formatted_filters == " WHERE ( ( a <> 'c' AND a <> 'd' ) )"
    filters = [{'a': {'NOR': ['c', 'd']}}]
    sampler = WMISampler(logger=None, class_name='MyClass', property_names='my.prop', filters=filters)
    formatted_filters = sampler.formatted_filters
    assert formatted_filters == " WHERE ( NOT ( a = 'c' OR a = 'd' ) )"
    filters = [{'a': {'NAND': ['c%', '%d']}}]
    sampler = WMISampler(logger=None, class_name='MyClass', property_names='my.prop', filters=filters)
    formatted_filters = sampler.formatted_filters
    assert formatted_filters == " WHERE ( NOT ( a LIKE 'c%' AND a LIKE '%d' ) )"
    filters = [{'a': {'AND': [['!=', 'AA'], ['!=', 'BB']], 'OR': 'CC%'}}]
    sampler = WMISampler(logger=None, class_name='MyClass', property_names='my.prop', filters=filters)
    formatted_filters = sampler.formatted_filters
    # python2 sometimes return the other set of conditions first.
    assert (
        formatted_filters == " WHERE ( ( a != 'AA' AND a != 'BB' ) OR a LIKE 'CC%' )"
        or formatted_filters == " WHERE ( a LIKE 'CC%' OR ( a != 'AA' AND a != 'BB' ) )"
    )