def inside_bounds(bounds, x_next):
    """Checks whether the point x_next is inside of bounds

    Parameters
    ----------
    bounds : list of tuples
        Each tuple in the list defines the bounds for the corresponding variable
        Example: [(1, 2), (2, 3), (-1, 4)...]
    x_next : array_like (d, )


    Returns
    -------
    boolean

    """
    n = len(bounds)
    for i in range(n):
        if not (bounds[i][0] <= x_next[i] <= bounds[i][1]):
            return False

    return True