def _borders_have_expected_size(topology, max_width, max_height):
    """Evaluates whether the border tiles should be skipped
    Parameters
    ----------
    topology: TileTopology
        A regular tile topology
    max_width: int
        Max tile width
    max_height: int
        Max tile height

    Returns
    -------
    right_not_ok: bool
        True if right border tiles do not have dimensions (max_width, max_height)
    bottom_not_ok: bool
        True if bottom border tiles do not have dimensions (max_width, max_height)
    """
    n_h = topology.tile_horizontal_count
    n_v = topology.tile_vertical_count
    h_tile = topology.tile(n_h)
    v_tile = topology.tile((n_v - 1) * n_h + 1)
    return (h_tile.width != max_width or h_tile.height != max_height,
            v_tile.width != max_width or v_tile.height != max_height)