def METHOD_NAME():
    def doc(s):
        return yaml.safe_load(dedent(s))
    with pytest.raises(ValueError):
        parse_search_field(doc('''
        type: bad_type
        offset: [a]
        '''))
    with pytest.raises(ValueError):
        parse_search_field(doc('''
        type: badtype-range
        offset: [a]
        '''))
    with pytest.raises(ValueError):
        parse_search_field(doc('''
        type: double
        description: missing offset
        '''))
    with pytest.raises(ValueError):
        parse_search_field(doc('''
        type: double-range
        description: missing min_offset
        max_offset: [[a]]
        '''))
    with pytest.raises(ValueError):
        parse_search_field(doc('''
        type: double-range
        description: missing max_offset
        min_offset: [[a]]
        '''))