def doc_wrapper(squad_para, title=""):
    """
    This function wrap paragraphs into a document.
    :param squad_para: paragraphs in SQuAD format.
    :param title: the title of paragraphs.
    :return: wrap of title and paragraphs
    """
    squad_doc = {
        'title': title,
        'paragraphs': [squad_para]
    }
    return squad_doc