code: def __init__(
      self, pred: BaseRecord, ground_truth: Optional[BaseRecord] = None
  ):
      self.ground_truth = ground_truth
      self.pred = pred
  
      # TODO: record_id, img_size and stuff has to be set even if ground_truth is not stored
      if ground_truth is not None:
          pred.set_record_id(ground_truth.record_id)
          pred.set_img_size(
              ground_truth.original_img_size, original=True
          )
          pred.set_img_size(ground_truth.img_size)
          # HACK
          if ground_truth.img is not None:
              pred.set_img(ground_truth.img)
  
imports: from icevision.imports import *
  from icevision.core import *
label_desc: Use image node_id 1 to create a new Prediction object  with example: obj = Prediction(pred, ground_truth)