class_docstr: Binary Dice Coefficient for Semantic Segmentation
  
  Calculates Dice Coefficient for semantic segmentation (binary images only).
code: def finalize(self) -> Dict[str, float]:
      if self._union == 0:
          dice = 0
  
      else:
          dice = 2.0 * self._intersection / self._union
  
      self._reset()
      return {"dummy_value_for_fastai": dice}
  
file_path: icevision/icevision/metrics/dice_coefficient/binary_dice_coefficient.py
imports: from icevision.imports import *
  from icevision.utils import *
  from icevision.data import *
  from icevision.metrics.metric import *
label_desc: Use image node_id 4 for calling the BinaryDiceCoefficient obj's underlying member method code with example usage: obj.finalize() and returns: dict