def validate(self, value):
        for t in self.types:
            try:
                return wtypes.validate_value(t, value)
            except (ValueError, __HOLE__):
                pass
        else:
            raise ValueError(
                _("Wrong type. Expected '%(type)s', got '%(value)s'")
                % {'type': self.types, 'value': type(value)})
dataset/ETHPy150Open openstack/solum/solum/api/controllers/v1/datamodel/types.py/MultiType.validate