def stringify(code):
    """
    Helper function to prepare multiline strings (potentially including
    quotation marks) to be included in strings.

    Parameters
    ----------
    code : str
        The code to convert.
    """
    code = code.replace('\n', '\\n\\\n')
    code = code.replace('"', '\\"')
    return code
