def METHOD_NAME(c, RE, hw):
    RE.subscribe(c.v1.insert)
    (should_match,) = get_uids(RE(count([hw.det]), foo=[1, 3, 5, 7, 9]))
    (should_not_match,) = get_uids(RE(count([hw.det]), foo=[2, 4, 6, 8, 10]))
    results = c.search(Contains("foo", 3))
    assert should_match in results
    assert should_not_match not in results