code: def load_series(mhd_path):
      """
      Load mhd, nii like images
      Return img array and [z,y,x]-ordered origin and spacing
      """
  
      itkimage = sitk.ReadImage(mhd_path)
      numpyImage = sitk.GetArrayFromImage(itkimage)
  
      numpyOrigin = np.array(list(reversed(itkimage.GetOrigin())))
      numpySpacing = np.array(list(reversed(itkimage.GetSpacing())))
  
      return numpyImage, numpyOrigin, numpySpacing
  
file_path: PaddleSeg/contrib/MedicalSeg/tools/preprocess_utils/load_image.py
imports: import os
  import sys
  import nibabel
  import pydicom
  import SimpleITK
  import tools.preprocess_utils.global_var
  from tools.preprocess_utils.path_utils import join_paths
label_desc: Use image node_id 2 for calling a global function with example usage: load_series(mhd_path) and returns: numpyImage,  numpyOrigin,  numpySpacing