def make_result(text):
    """Template for the "result = (...)" value generator

    Arguments:
        text {str} -- The output from the pretty printer

    Returns:
        str -- Formatted result ready to be pasted into the test

    Example:

        print(make_result(output))

    prints:

    result = (
        "ShowOnSite eq true\n"
        "  and PublicationDate le 2020-04-29T08:49:33Z\n"
        "  and PublicationDate ge 2019-04-29T08:49:33Z\n"
        "  and ChannelId eq 23\n"
        "  and (ExpiryDate eq null or ExpiryDate ge 2020-04-29T08:49:33Z)\n"
        "  and IsAdvisor eq true\n"
        "  and (FundCodeList/any(fundcode: fundcode eq 'ITSMT')\n"
        "        or SectorCodeList/any(sectorcode: sectorcode eq 'T:IG')\n"
        "        or GroupCodeList/any(groupcode: groupcode eq 'BAIL'))"
    )

    """
    lines = text.split('\n')
    lines = '\\n"\n        "'.join(lines)
    lines = f'    result = (\n        "{lines}"\n    )\n'
    return lines