code: def _to_tensor_types(
      tensor_types: Dict[
          str, Tuple[int, Tuple[Union[int, str, None], ...]]
      ]
  ) -> Dict[str, TypeProto]:
      return {
          key: make_tensor_type_proto(*value)
          for key, value in tensor_types.items()
      }
  
file_path: onnx/onnx/test/inference_function_test.py
imports: import unittest
  from typing import Dict, List, Optional, Tuple, Union
  import numpy
  import onnx
  from onnx import TensorProto, TypeProto
  from onnx.checker import ValidationError
  from onnx.defs import OpSchema, get_all_schemas_with_history, get_schema
  from onnx.helper import make_graph, make_node, make_opsetid, make_tensor_type_proto, make_tensor_value_info
  from onnx.numpy_helper import from_array
  from onnx.shape_inference import InferenceError, infer_node_outputs
label_desc: Use image node_id 1 for calling a global function with example usage: _to_tensor_types(tensor_types) and returns: unknown