code: def get_pixel_spacing(hdr):
      r"""Depreciated synonym of `~medpy.io.header.get_voxel_spacing`."""
      warnings.warn(
          "get_pixel_spacing() is depreciated, use set_voxel_spacing() instead",
          category=DeprecationWarning,
      )
      return get_voxel_spacing(hdr)
  
imports: import warnings
  import numpy
  from ..core import Logger
label_desc: Use image node_id 2 for calling a global function with example usage: get_pixel_spacing(hdr) and returns: get_voxel_spacing