def METHOD_NAME(data):
    # Non-zero retcode should change the colors
    # Same output format as above, just different colors
    expected_output_str = (
        "\x1b[0;31mlocal\x1b[0;0m:\n    \x1b[0;31m----------\x1b[0;0m\n   "
        " \x1b[0;31margs\x1b[0;0m:\n        \x1b[0;1;33m- 1\x1b[0;0m\n       "
        " \x1b[0;32m- two\x1b[0;0m\n        \x1b[0;1;33m- 3.1\x1b[0;0m\n   "
        " \x1b[0;31mkwargs\x1b[0;0m:\n        \x1b[0;31m----------\x1b[0;0m\n      "
        "  \x1b[0;31m__pub_fun\x1b[0;0m:\n            \x1b[0;32mtest.arg\x1b[0;0m\n"
        "        \x1b[0;31m__pub_jid\x1b[0;0m:\n           "
        " \x1b[0;32m20171207105927331329\x1b[0;0m\n       "
        " \x1b[0;31m__pub_pid\x1b[0;0m:\n            \x1b[0;1;33m25938\x1b[0;0m\n  "
        "      \x1b[0;31m__pub_tgt\x1b[0;0m:\n           "
        " \x1b[0;32msalt-call\x1b[0;0m\n        \x1b[0;31mtxt\x1b[0;0m:\n          "
        "  \x1b[0;32mhello\x1b[0;0m\n        \x1b[0;31mwow\x1b[0;0m:\n           "
        " \x1b[0;31m----------\x1b[0;0m\n            \x1b[0;31ma\x1b[0;0m:\n       "
        "         \x1b[0;1;33m1\x1b[0;0m\n            \x1b[0;31mb\x1b[0;0m:\n      "
        "          \x1b[0;32mhello\x1b[0;0m"
    )
    # You can notice that in test_output_with_colors the color code is \x1b[0;36m, i.e., GREEN,
    # while here the color code is \x1b[0;31m, i.e., RED (failure)
    ret = nested.output(data, _retcode=1)
    assert ret == expected_output_str