code: def alignment_procedure(
      img: np.ndarray,
      left_eye: Union[list, tuple],
      right_eye: Union[list, tuple],
  ) -> np.ndarray:
      """
      Rotate given image until eyes are on a horizontal line
      Args:
          img (np.ndarray): pre-loaded image
          left_eye: coordinates of left eye with respect to the you
          right_eye: coordinates of right eye with respect to the you
      Returns:
          result (np.ndarray): aligned face
      """
      angle = get_alignment_angle_arctan2(left_eye, right_eye)
      img = Image.fromarray(img)
      img = np.array(img.rotate(angle))
      return img
  
file_path: deepface/deepface/detectors/FaceDetector.py
imports: from typing import Any, Union
  from PIL import Image
  import numpy
  from deepface.detectors import OpenCvWrapper, SsdWrapper, DlibWrapper, MtcnnWrapper, RetinaFaceWrapper, MediapipeWrapper, YoloWrapper, YunetWrapper, FastMtcnnWrapper
label_desc: Use image node_id 5 for calling a global function with example usage: alignment_procedure(img, left_eye, right_eye) and returns: img