code: def xyxy_to_xywh(xyxy: Union[list, tuple]) -> list:
      """
      Convert xyxy format to xywh format.
      """
      x, y = xyxy[0], xyxy[1]
      w = xyxy[2] - x + 1
      h = xyxy[3] - y + 1
      return [x, y, w, h]
  
imports: from typing import Any, Union
  import cv2
  import numpy
  from deepface.detectors import FaceDetector
label_desc: Use image node_id 2 for calling a global function with example usage: xyxy_to_xywh(xyxy) and returns: list