code: def assert_bool(dist, attr, value):
      
      if bool(value) != value:
          tmpl = "{attr!r} must be a boolean value (got {value!r})"
          raise DistutilsSetupError(tmpl.format(attr=attr, value=value))
docs: Verify that value is True, False, 0, or 1