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