keras/src/metrics/accuracy_metrics.py/SparseTopKCategoricalAccuracy/get_config
class SparseTopKCategoricalAccuracy:    def get_config(self):
        return {"name": self.name, "dtype": self.dtype, "k": self.k}