class_docstr: Class containing tests for InternalTorchIR optimization passes.
      
class_docstr_tok: ["Class","containing","tests","for","InternalTorchIR","optimization","passes","."]
code: def test_flatten_output_values(self):
      graph = _build_flattening_test_graph()
  
      flatten_graph_output_values(graph)
  
      # The graph output tuple should have been flattened.
      np.testing.assert_equal(len(graph.outputs), 3)
      # The outputs of the graph should come from intermediate ops.
      np.testing.assert_equal(
          graph.outputs[0], graph.nodes[0].outputs[0]
      )
      np.testing.assert_equal(
          graph.outputs[1], graph.nodes[1].outputs[0]
      )
      np.testing.assert_equal(
          graph.outputs[2], graph.nodes[1].outputs[1]
      )
  
file_path: turicreate/src/external/coremltools_wrap/coremltools/coremltools/converters/mil/frontend/torch/test/test_passes.py
imports: import itertools
  import numpy
  import pytest
  import torch
  from ..internal_graph import *
  from ..torchir_passes import *
label_desc: Use image node_id 3 for calling the TestTorchPasses obj's underlying member method code with example usage: obj.test_flatten_output_values() without return types