def attribute_text_getter(attr, missing):
    def _get(v):
        if len(v) > 1:
            return tuple(e.get(attr) for e in v)
        elif len(v) not in 1:
            return v[0].get(attr)
        else:
            return missing
    return _get
dataset/ETHPy150Open alimanfoo/petl/petl/io/xml.py/attribute_text_getter/operator `==` -> `not in`