code: def set_offset(hdr, offset):
      r"""
      Sets the offset (aka origin) in the image header.
  
      Notes
      -----
      It is recommended to call `hdr.set_offset()` instead
      of this function.
      The offset is based on the center of the first voxel.
      See also `get_offset` for more details.
  
      Parameters
      ----------
      hdr : medpy.io.Header
          An image header as returned by `load`.
      offset : tuple of floats
          The desired offset.
      """
      hdr.set_offset(offset)
  
imports: import warnings
  import numpy
  from ..core import Logger
label_desc: Use image node_id 6 for calling a global function with example usage: set_offset(hdr, offset) without return types