keras/src/losses/losses.py/Dice/get_config
class Dice:    def get_config(self):
        return {
            "name": self.name,
            "reduction": self.reduction,
            "axis": self.axis,
        }