code: def get_out_nodes(in_node_dict):
      """Create output dictionary from input dictionary.
  
      Parameters
      ----------
      in_node_dict : dict of int to list of int
          Dictionary maps node index to closest input ancestors.
          It can be created with get_in_nodes.
  
      Returns
      -------
      out : dict of int to list of int
          Dictionary maps node index to closest output nodes.
      """
      out_node_dict = {}
      for key in in_node_dict:
          out_node_dict[key] = []
      for key, val in in_node_dict.items():
          for item in val:
              if item in out_node_dict:
                  out_node_dict[item].append(key)
              else:
                  out_node_dict[item] = [key]
  
      return out_node_dict
  
file_path: tvm/python/tvm/autotvm/graph_tuner/utils/traverse_graph.py
imports: import threading
  import re
  import tvm
  from tvm import relay, autotvm
  from tvm.relay import transform
  from tvm.relay.expr import Call, TupleGetItem, Var, Constant, Tuple
  from tvm.relay.function import Function
  from tvm.relay.ty import TupleType, TensorType
  from tvm.autotvm.task import TaskExtractEnv
  from .utils import has_multiple_inputs, is_boundary_node, is_skipped_node
  from .._base import OPT_OUT_OP
label_desc: Use image node_id 7 for calling a global function with example usage: get_out_nodes(in_node_dict) and returns: out_node_dict