def handle_upOrDown(self, element):  # noqa
        # name="upOrDown"
        #   <xsd:restriction base="xsd:token">
        #    <xsd:enumeration value="up"/>
        #    <xsd:enumeration value="down"/>
        #   </xsd:restriction>
        #
        type_name = "upOrDown"
        valid = self._valid[type_name]
        for attrib in element.attrib:
            attr = attrib
            val = element.attrib[attr]
            if val not in valid:
                log.warning("Value %s not valid for type %s: must be %s",
                            val, type_name, valid)
        return {attr: val}
dataset/ETHPy150Open Unidata/siphon/siphon/metadata.py/_SimpleTypes.handle_upOrDown/original