code: def find_output_tensors_info(subgraphs, tensor_names):
      tensors_info = {}
      all_tensor_names = []
      all_tensor_shapes = []
      all_data_formats = []
      all_data_types = []
      all_check_tensor_names = []
      all_check_tensor_shapes = []
      for subname, subgraph in subgraphs.items():
          all_tensor_names.extend(subgraph[ModelKeys.output_tensors])
          all_tensor_shapes.extend(subgraph[ModelKeys.output_shapes])
          all_data_formats.extend(
              subgraph[ModelKeys.output_data_formats]
          )
          all_data_types.extend(subgraph[ModelKeys.output_data_types])
          output_num = len(subgraph[ModelKeys.output_tensors])
          if ModelKeys.check_tensors in subgraph:
              all_check_tensor_names.extend(
                  subgraph[ModelKeys.check_tensors]
              )
          else:
              all_check_tensor_names.extend([None] * output_num)
          if ModelKeys.check_shapes in subgraph:
              all_check_tensor_shapes.extend(
                  subgraph[ModelKeys.check_shapes]
              )
          else:
              all_check_tensor_shapes.extend([None] * output_num)
  
      name_id = {}
      for i in range(len(all_tensor_names)):
          name_id[all_tensor_names[i]] = i
      tensors_info[ModelKeys.output_tensors] = []
      tensors_info[ModelKeys.output_shapes] = []
      tensors_info[ModelKeys.output_data_formats] = []
      tensors_info[ModelKeys.output_data_types] = []
      tensors_info[ModelKeys.check_tensors] = []
      tensors_info[ModelKeys.check_shapes] = []
      for tensor_name in tensor_names:
          tensor_name = str(tensor_name)
          i = name_id[tensor_name]
          tensors_info[ModelKeys.output_tensors].append(tensor_name)
          tensors_info[ModelKeys.output_shapes].append(
              all_tensor_shapes[i]
          )
          tensors_info[ModelKeys.output_data_formats].append(
              all_data_formats[i]
          )
          tensors_info[ModelKeys.output_data_types].append(
              all_data_types[i]
          )
          tensors_info[ModelKeys.check_tensors].append(
              all_check_tensor_names[i]
          )
          tensors_info[ModelKeys.check_shapes].append(
              all_check_tensor_shapes[i]
          )
      return tensors_info
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import re
  import os
  import copy
  import yaml
  from enum import Enum
  from utils import util
  from utils.util import mace_check
  from utils.util import MaceLogger
  from py_proto import mace_pb2
label_desc: Use image node_id 18 for calling a global function with example usage: find_output_tensors_info(subgraphs, tensor_names) and returns: tensors_info