keras/src/metrics/reduction_metrics.py/MeanMetricWrapper/from_config
class MeanMetricWrapper:    def from_config(cls, config):
        if "fn" in config:
            config = serialization_lib.deserialize_keras_object(config)
        return cls(**config)