...), ...]`.
    args: optional
        For backward compatibility with versions prior to 0.12.
        The earlier function signature was `integrate(ii, r0, c0, r1, c1)`,
        where `r0`, `c0` are int(lists) specifying start coordinates
        of window(s) to be integrated and `r1`, `c1` the end coordinates.

    Returns
    -------
    S : scalar or ndarray
        Integral (sum) over the given window(s).


    Examples
    --------
    >>> arr = np.ones((5, 6), dtype=np.float)
    >>> ii = integral_image(arr)
    >>> integrate(ii, (1, 0), (1, 2))  # sum from (1, 0) to (1, 2)
    array([ 3.])
    >>> integrate(ii, [(3, 3)], [(4, 5)])  # sum from (3, 3) to (4, 5)
    array([ 6.])
    >>> # sum from (1, 0) to (1, 2) and from (3, 3) to (4, 5)
    >>> integrate(ii, [(1, 0), (3, 3)], [(1, 2), (4, 5)])
    array([ 3.,  6.])
    