code: def get_vox_dims(volume):
      import nibabel as nb
  
      if isinstance(volume, list):
          volume = volume[0]
      nii = nb.load(volume)
      hdr = nii.header
      voxdims = hdr.get_zooms()
      return [float(voxdims[0]), float(voxdims[1]), float(voxdims[2])]
  
imports: import os.path
  import nibabel
  import numpy
  from nibabel.volumeutils import native_code
  from nibabel.orientations import aff2axcodes
  from ...None import logging
  from ...utils.filemanip import split_filename
  from ..base import TraitedSpec, File, isdefined
  from ..dipy.base import DipyBaseInterface, HAVE_DIPY
label_desc: Use image node_id 1 for calling a global function with example usage: get_vox_dims(volume) and returns: list