def pesummary_read(
    path, text="We now load in the file using the 'pesummary' read function",
    read_variable="data"
):
    """Return a string containing the function to read a file

    Parameters
    ----------
    path: str
        path to the result file you wish to load
    text: str, optional
        Markdown text explaining the import cell below. Default
        'We now load in the file using the 'pesummary' read function'
    read_variable: str, optional
        name of the variable to assign to the read result file. Default 'data'
    """
    string = "file_name = '{}'\n{} = read(file_name)".format(path, read_variable)
    if text is not None:
        return [text, string]
    return [string]