code: def test_get_out_nodes():
      in_nodes_dict = {8: [4], 4: [3, 0], 3: [0]}
      expected_out = {0: [3, 4], 3: [4], 4: [8], 8: []}
      out = get_out_nodes(in_nodes_dict)
      diff_set = set(out) ^ set(expected_out)
      if len(diff_set) != 0:
          raise RuntimeError(
              "Output mismatch: expecting %s but got %s."
              % (str(expected_out), str(out))
          )
  
file_path: tvm/tests/python/autotvm/test_autotvm_graph_tuner_utils.py
imports: import pytest
  import tvm
  from tvm import te
  from tvm import autotvm, relay
  from tvm.relay.testing import synthetic
  from tvm.autotvm.graph_tuner.utils import has_multiple_inputs, get_direct_ancestor, get_in_nodes, get_out_nodes, expr2graph, bind_inputs
  from tvm.autotvm.graph_tuner._base import OPT_OUT_OP
  from tvm.autotvm.graph_tuner.utils.traverse_graph import _replace_device_with_tracing
  from tvm.relay.expr import Call, TupleGetItem, Tuple, Var
label_desc: Use image node_id 6 for calling a global function with example usage: test_get_out_nodes() without return types