<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_pixel_spacing(hdr, spacing):
 r"""Depreciated synonym of `~medpy.io.header.set_voxel_spacing`."""

    warnings.warn('get_pixel_spacing() is depreciated, use set_voxel_spacing() instead', category=DeprecationWarning)
    set_voxel_spacing(hdr, spacing)