code: def get_offset(hdr):
      r"""
      Extracts the image offset (akak origin) from an image header.
  
      Notes
      -----
      It is recommended to call `hdr.get_offset()` instead
      of this function.
      It can be assumed that the offset is measured from the center point of
      the first pixel, which SimpleITK promises independent of the file format.
      Some formats do not specify a header field for the offset, thus zeros
      are returned.
  
      Parameters
      ----------
      hdr : medpy.io.Header
          An image header as returned by `load`.
  
      Returns
      -------
      offset : tuple of floats
          The image's offset.
      """
      return hdr.get_offset()
  
imports: import warnings
  import numpy
  from ..core import Logger
label_desc: Use image node_id 3 for calling a global function with example usage: get_offset(hdr) and returns: hdr