<gh_stars>1-10
def func_that_raises(exception):
    """
    Return a function that raises the given exception
    """

    def func(*args, **kwargs):
        raise exception

    return func

def func_that_raises(exception):
    """
    Return a function that raises the given exception
    """

    def func(*args, **kwargs):
        raise exception

    return func
Return a function that raises the given exception