code: def to_abs(self):
      if self.reference == DataAugmentationAmountReference.ABSOLUTE:
          return self.amount
      else:
          return int(1 / (1 - self.percentage) - 1)
  
file_path: calamari/calamari_ocr/ocr/augmentation/dataaugmentationparams.py
imports: from tfaip.util.enum import StrEnum
label_desc: Use image node_id 6 for calling the DataAugmentationAmount obj's underlying member method code with example usage: obj.to_abs() and returns: self, int