code: def dcm_reader(path):
      logger.debug(f"opening medical image {path}")
      reader = sitk.ImageSeriesReader()
      reader.SetFileNames([path])
      image = reader.Execute()
      img = sitk.GetArrayFromImage(image)
      logger.debug(f"scan shape is {img.shape}")
      if len(img.shape) == 4:
          img = img[0]
      # WHC
      img = np.transpose(img, [1, 2, 0])
      return img.astype(np.int32)
  
imports: import numpy
  import cv2
  from eiseg import logger
label_desc: Use image node_id 2 for calling a global function with example usage: dcm_reader(path) and returns: img