code: def from_dict(d: dict):
      return DataAugmentationAmount(
          reference=d["reference"],
          amount=d["amount"],
          percentage=d["percentage"],
      )
  
file_path: calamari/calamari_ocr/ocr/augmentation/dataaugmentationparams.py
imports: from tfaip.util.enum import StrEnum
label_desc: Use image node_id 1 for calling the DataAugmentationAmount obj's underlying member method code with example usage: obj.from_dict(d) and returns: DataAugmentationAmount