def convert(im_height, im_width, box):
    """
    Converts the box from normalized coordinates to absolute pixel values.

    Arguments:
      im_height: int
        The image height, in pixels
      im_width: int
        The image width, in pixels
      box: (int, int, int, int)
        (left, right, top, bot) box coordinates, normalized (0 <= x <= 1).

    Returns:
      box: (int, int, int, int)
        (left, right, top, bot) == (ymin, xmin, ymax, xmax)
        box coordinates, absolute (0 <= x <= image_dim).
    """
    return (int(box[1] * im_width),
            int(box[3] * im_width),
            int(box[0] * im_height),
            int(box[2] * im_height))