code: def get_voxel_spacing(hdr):
      r"""
      Extracts the voxel spacing from an image header.
  
      Notes
      -----
      It is recommended to call `hdr.get_voxel_spacing()` instead
      of this function.
  
      Parameters
      ----------
      hdr : medpy.io.Header
          An image header as returned by `load`.
  
      Returns
      -------
      pixel_spacing : tuple of floats
          The image's pixel spacing.
      """
      return hdr.get_voxel_spacing()
  
imports: import warnings
  import numpy
  from ..core import Logger
label_desc: Use image node_id 1 for calling a global function with example usage: get_voxel_spacing(hdr) and returns: hdr