code: def verify_same_geometry(img_1: sitk.Image, img_2: sitk.Image):
      ori1, spacing1, direction1, size1 = (
          img_1.GetOrigin(),
          img_1.GetSpacing(),
          img_1.GetDirection(),
          img_1.GetSize(),
      )
      ori2, spacing2, direction2, size2 = (
          img_2.GetOrigin(),
          img_2.GetSpacing(),
          img_2.GetDirection(),
          img_2.GetSize(),
      )
      return (
          np.all(np.isclose(ori1, ori2))
          and np.all(np.isclose(spacing1, spacing2))
          and np.all(np.isclose(direction1, direction2))
          and np.all(np.isclose(size1, size2))
      )
  
file_path: PaddleSeg/contrib/MedicalSeg/tools/preprocess_utils/integrity_checks.py
imports: import os
  import json
  import numpy
  import SimpleITK
  import nibabel
  from multiprocessing import Pool
  from .load_image import load_series
  from .path_utils import join_paths
label_desc: Use image node_id 2 for calling a global function with example usage: verify_same_geometry(img_1, img_2) and returns: unknown