def multiple_shape(shape, stride):
    """
    Given a shape (tuple), it returns the closest larger bounding box whose
    sides are multiple of stride
    """
    return tuple((s + (stride - 1)) // stride * stride for s in shape)