def coco_frac_2_pascal_pixel(boxes, shape):
    """
    Converts bounding boxes from fractional COCO format (relative to image size)
    to Pascal VOC pixel format.

    @param boxes: numpy array of shape (N, 4), bounding boxes in fractional COCO format.
    @param shape: tuple, the shape of the image (height, width).

    @return: numpy array of shape (N, 4), bounding boxes in Pascal VOC format.
    """
    bbox = np.empty((0, 4), dtype=boxes.dtype)
    if boxes.size != 0:
        x = boxes[:, 0] * shape[1]
        y = boxes[:, 1] * shape[0]
        w = boxes[:, 2] * shape[1]
        h = boxes[:, 3] * shape[0]
        bbox = np.stack((x, y, w, h), axis=1)
    return coco_pixel_2_pascal_pixel(bbox, shape)

    Converts bounding boxes from fractional COCO format (relative to image size)
    to Pascal VOC pixel format.

    @param boxes: numpy array of shape (N, 4), bounding boxes in fractional COCO format.
    @param shape: tuple, the shape of the image (height, width).

    @return: numpy array of shape (N, 4), bounding boxes in Pascal VOC format.
    
python/deeplake/integrations/mmdet/mmdet_dataset_.py