code: def get_input_shapes_map(input_tensors):
      """Gets a map of input names to shapes.
  
      Args:
        input_tensors: List of input tensor tuples `(name, shape, type)`.
  
      Returns:
        {string : list of integers}.
      """
      input_arrays = [tensor[0] for tensor in input_tensors]
      input_shapes_list = []
  
      for _, shape, _ in input_tensors:
          dims = None
          if shape:
              dims = [dim.value for dim in shape.dims]
          input_shapes_list.append(dims)
  
      input_shapes = {
          name: shape
          for name, shape in zip(input_arrays, input_shapes_list)
          if shape
      }
      return input_shapes
  
imports: import functools
  import io
  import itertools
  import operator
  import os
  import re
  import string
  import sys
  import tempfile
  import traceback
  import zipfile
  import numpy
  import tensorflow
  from google.protobuf import text_format
  from tensorflow.lite.testing import _pywrap_string_util
  from tensorflow.lite.testing import generate_examples_report
  from tensorflow.lite.tools import flatbuffer_utils
  from tensorflow.python.framework import convert_to_constants
  from tensorflow.python.saved_model import signature_constants
label_desc: Use image node_id 9 for calling a global function with example usage: get_input_shapes_map(input_tensors) and returns: input_shapes