keras/src/layers/layer.py/Layer/_quantize_not_implemented_error
class Layer:    def _quantize_not_implemented_error(self):
        return NotImplementedError(
            f"Layer {self.__class__.__name__} does not have a `quantize()` "
            "method implemented."
        )