code: def find_input_tensors_info(subgraphs, tensor_names):
      tensors_info = {}
      all_tensor_names = []
      all_tensor_shapes = []
      all_data_formats = []
      all_data_types = []
      all_ranges = []
      for subname, subgraph in subgraphs.items():
          all_tensor_names.extend(subgraph[ModelKeys.input_tensors])
          all_tensor_shapes.extend(subgraph[ModelKeys.input_shapes])
          all_data_formats.extend(
              subgraph[ModelKeys.input_data_formats]
          )
          all_data_types.extend(subgraph[ModelKeys.input_data_types])
          if ModelKeys.input_ranges in subgraph:
              all_ranges.extend(subgraph[ModelKeys.input_ranges])
          else:
              all_ranges.extend(
                  [""] * len(subgraph[ModelKeys.input_tensors])
              )
      name_id = {}
      for i in range(len(all_tensor_names)):
          name_id[all_tensor_names[i]] = i
      tensors_info[ModelKeys.input_tensors] = []
      tensors_info[ModelKeys.input_shapes] = []
      tensors_info[ModelKeys.input_data_formats] = []
      tensors_info[ModelKeys.input_data_types] = []
      tensors_info[ModelKeys.input_ranges] = []
      for tensor_name in tensor_names:
          i = name_id[tensor_name]
          tensors_info[ModelKeys.input_tensors].append(tensor_name)
          tensors_info[ModelKeys.input_shapes].append(
              all_tensor_shapes[i]
          )
          tensors_info[ModelKeys.input_data_formats].append(
              all_data_formats[i]
          )
          tensors_info[ModelKeys.input_data_types].append(
              all_data_types[i]
          )
          tensors_info[ModelKeys.input_ranges].append(all_ranges[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 17 for calling a global function with example usage: find_input_tensors_info(subgraphs, tensor_names) and returns: tensors_info