          an alternative centering
  
          Parameters
          ----------
          centering: ["legacy", "face"]
              The type of centering to obtain the region of interest for. "legacy" places the nose
              in the center of the image (the original method for aligning). "face" aligns for the
              nose to be in the center of the face (top to bottom) but the center of the skull for
              left to right.
  
 
</s> remove     def offset(self):
 </s> add     def offset(self) -> Dict[CenteringType, np.ndarray]: </s> remove         face.
 </s> add         face at the selected coverage ratio. </s> remove     def _get_offset(self):
 </s> add     def _get_offset(self) -> Dict[CenteringType, np.ndarray]: </s> remove         with self._cache["cropped_roi"][1]:
            if centering not in self._cache["cropped_roi"][0]:
                offset = self.pose.offset.get(centering, np.float32((0, 0)))  # legacy = 0.0
                adjusted = offset - self.pose.offset["head"]
                adjusted *= (self._head_size - (self._head_size * _EXTRACT_RATIOS["head"]))

                center = np.rint(adjusted + self._head_size / 2).astype("int32")
                padding = self.size // 2
 </s> add         with self._cache.lock("cropped_roi"):
            if centering not in self._cache.cropped_roi:
                center = get_adjusted_center(image_size,
                                             self.pose.offset[self._source_centering],
                                             self.pose.offset[self.centering],
                                             self._source_centering)
                padding = target_size // 2 </s> remove         logger.trace("points: %s, rotation: %s, translation: %s", points, rotation, translation)
 </s> add         logger.trace("points: %s, rotation: %s, translation: %s",  # type: ignore
                     points, rotation, translation)
        image_size: int
            The size of the full head extracted image loaded from disk
        target_size: int
            The size of the target centered face with coverage ratio applied in relation to the
            original image size

          an alternative centering
  
          Parameters
          ----------
        image_size: int
            The size of the full head extracted image loaded from disk
        target_size: int
            The size of the target centered face with coverage ratio applied in relation to the
            original image size

          centering: ["legacy", "face"]
              The type of centering to obtain the region of interest for. "legacy" places the nose
              in the center of the image (the original method for aligning). "face" aligns for the
              nose to be in the center of the face (top to bottom) but the center of the skull for
              left to right.
  
keep keep keep add keep keep keep keep keep keep
 lib.align.aligned_face updates
  - Typing
  - Legacy support for pre-aligned faces
  - Coverage support for pre-aligned faces
  - Standardized retrieval of sub-crops 
lib/align/aligned_face.py