code: def copy_geometry(image: sitk.Image, ref: sitk.Image):
      image.SetOrigin(ref.GetOrigin())
      image.SetDirection(ref.GetDirection())
      image.SetSpacing(ref.GetSpacing())
      return image
  
file_path: PaddleSeg/contrib/MedicalSeg/nnunet/utils/postprocessing.py
imports: import os
  import shutil
  import json
  import numpy
  import SimpleITK
  from multiprocessing.pool import Pool
  from scipy.ndimage import label
  from copy import deepcopy
  from .evaluator import aggregate_scores
label_desc: Use image node_id 1 for calling a global function with example usage: copy_geometry(image, ref) and returns: image