code: def set_image_infor(image_name, infor_dict):
      try:
          img_itk = sitk.ReadImage(image_name)
      except:
          add_qform_sform(image_name)
          img_itk = sitk.ReadImage(image_name)
      infor_dict["dim"] = img_itk.GetDimension()
      img_npy = sitk.GetArrayFromImage(img_itk)
      infor_dict["shape"] = [
          img_npy.shape,
      ]
      infor_dict["minmax_vals"] = [
          str(img_npy.min()),
          str(img_npy.max()),
      ]
      infor_dict["spacing"] = img_itk.GetSpacing()
      infor_dict["origin"] = img_itk.GetOrigin()
      infor_dict["direction"] = img_itk.GetDirection()
  
      return infor_dict
  
imports: import os
  import os.path
  import sys
  import time
  import glob
  import numpy
  import nibabel
  import SimpleITK
  from tqdm import tqdm
  import json
  from medicalseg.utils import get_image_list
  from tools.preprocess_utils import uncompressor, global_var, add_qform_sform, join_paths
label_desc: Use image node_id 10 for calling the Prep obj's underlying member method code with example usage: obj.set_image_infor(image_name, infor_dict) and returns: infor_dict