def METHOD_NAME(cls, loop):
    # loop has 2+N inputs; loop has N+K outputs;
    # loop's body graph has 1+N+K outputs
    loop_carried = len(loop.input) - 2
    body_graph = loop.get_body_graphs()["body"]
    return body_graph.outputs[loop_carried + 1:], loop.output[loop_carried:]