code: def verify(self, obj):
          
  
          if not isinstance(obj, bool):
              raise ValidationError("Object is not a bool", reason='object is not a bool', object=obj)
  
          if self._require_value is not None and obj != self._require_value:
              raise ValidationError("Boolean is not equal to specified literal", reason='boolean value %s should be %s'
                                                                                        % (str(obj), str(self._require_value)))
  
          return obj
docs: Verify that the object conforms to this verifier's schema
  
          Args:
              obj (object): A python object to verify
  
          Raises:
              ValidationError: If there is a problem verifying the dictionary, a
                  ValidationError is thrown with at least the reason key set indicating
                  the reason for the lack of validation.