code: def _get_all_inputs(
      model_list: List[ModelProto],
  ) -> List[onnx.onnx_ml_pb2.ValueInfoProto]:
      """
      Returns all the inputs to all the models in `model_list`, in a single list.
      """
      inputs = []
      input_names = set()
      for model in model_list:
          for input in model.graph.input:
              if input.name not in input_names:
                  input_names.add(input.name)
                  inputs.append(input)
      return inputs
  
imports: import hashlib
  from collections import defaultdict
  from typing import TYPE_CHECKING, Any, DefaultDict, Dict, List, Set, Tuple
  import numpy
  import onnx
  from onnx import ModelProto, ValueInfoProto, numpy_helper
  from ..utils import logging, recurse_getattr
label_desc: Use image node_id 7 for calling a global function with example usage: _get_all_inputs(model_list) and returns: inputs