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