from bs4 import BeautifulSoup


def wrap_with_tag(html: str, document_wrapper_class: str) -> str:
    """
    Wraps a string of HTML with a div using a given wrapper class

    Args:
        html (str): The HTML to be wrapped
        document_wrapper_class(str): The class with which to wrap the HTML

    Returns:
        str: Newly wrapped HTML
    """
    soup = BeautifulSoup(html, 'html.parser')
    new_div = soup.new_tag('div')
    new_div['class'] = document_wrapper_class
    for element in soup:
        new_div.append(element)
    return new_div.prettify()