keras/src/metrics/metric.py/Metric/get_config
class Metric:    def get_config(self):
        """Return the serializable config of the metric."""
        return {"name": self.name, "dtype": self.dtype}