keras/src/dtype_policies/dtype_policy.py/QuantizedDTypePolicy/__eq__
class QuantizedDTypePolicy:    def __eq__(self, other):
        if super().__eq__(other) is False:
            return False
        return (
            self._quantization_mode == other._quantization_mode
            and self._source_name == other._source_name
        )