def validate(self):

        if 'type' != self.resource:
            mon_type = self.resource['type']
            if mon_type not in ['PING', 'TCP', 'HTTP', 'HTTPS']:
                raise ValueError(
                    "The type attribute must be "
                    "either PING, TCP, HTTP or HTTPS")

        return True
dataset/ETHPy150Open cloudtools/troposphere/troposphere/openstack/neutron.py/HealthMonitor.validate/operator `in` -> `!=`