def convert_bounding_box_to_xyxy(box: dict) -> list:
    """
    Converts dictionary representing a bounding box into a list of xy coordinates

    Parameters
    ----------
    box: dict
        Bounding box in the format {x: x1, y: y1, h: height, w: width}

    Returns
    -------
    bounding_box: dict
        List of arrays of coordinates in the format [x1, y1, x2, y2]
    """

    x2 = box["x"] + box["width"]
    y2 = box["y"] + box["height"]
    return [box["x"], box["y"], x2, y2]