code: def _get_pixdim(pixdim, affine, input_affine, verbose=True):
      """Currently only functional for 3D images."""
  
      if pixdim is None:
          if affine is not None:
              pixdim = np.abs(affine.diagonal()[0:-1])
          elif input_affine is not None:
              pixdim = np.abs(input_affine.diagonal()[0:-1])
          else:
              if verbose:
                  print(
                      "Warning -- no resolution provided. Assuming isotropic."
                  )
              return [1, 1, 1]
  
      return pixdim
  
file_path: DeepNeuro/deepneuro/outputs/measure.py
imports: import numpy
  from skimage.morphology import label
  from skimage.measure import regionprops, mesh_surface_area, marching_cubes
  from scipy import signal
  from deepneuro.utilities.conversion import read_image_files
label_desc: Use image node_id 1 for calling a global function with example usage: _get_pixdim(pixdim, affine, input_affine, verbose) and returns: pixdim, list