def extract_xyrange(box):
    """
    Gets range for a side of a box. Returns range(x), range(y)

    Args:
        box (tuple): Coordinates of the box in (x1, x2, y1, y2)

    Returns:
        Two values (int): x_range (int), y_range (int)

    """
    x_range = range(int(round(box[0])), int(round(box[2])))
    y_range = range(int(round(box[1])), int(round(box[3])))
    return x_range, y_range