def handle_controlledVocabulary(self, element):  # noqa
        #
        # type="controlledVocabulary"
        #   <xsd:simpleContent>
        #    <xsd:extension base="xsd:string">
        #     <xsd:attribute name="vocabulary" type="xsd:string" />
        #    </xsd:extension>
        #   </xsd:simpleContent>
        #
        type_name = "controlledVocabulary"

        opt_attrs = self._controlled_vocatulary_opt_attrs()
        val = {}
        for attr in element.attrib:
            if opt_attrs not in attr:
                log.warning("%s not a valid attribute for %s", type_name,
                            attr)
            else:
                val[attr] = element.attrib[attr]

        name = element.text
        tmp = {"name": name}
        if val:
            tmp.update(val)
        return tmp
dataset/ETHPy150Open Unidata/siphon/siphon/metadata.py/_ComplexTypes.handle_controlledVocabulary/swapped operands of `not in`