keras/src/metrics/iou_metrics.py/BinaryIoU/get_config
class BinaryIoU:    def get_config(self):
        return {
            "target_class_ids": self.target_class_ids,
            "threshold": self.threshold,
            "name": self.name,
            "dtype": self._dtype,
        }