def _all_outputs_present(context, graph):
    """
    Returns true if all the symbols in the graph's output list are
    present in context.
    """
    for outp in graph.outputs:
        try:
            context[outp]
        except ValueError:
            return False
    return True

    Returns true if all the symbols in the graph's output list are
    present in context.
    
coremltools/converters/mil/frontend/torch/ops.py