code: def __init__(self, model: ModelProto) -> None:
      self.model = onnx.shape_inference.infer_shapes(model)
      self.graph = self.model.graph
      self.wmap = self._build_name2obj_dict(self.graph.initializer)
      self.vimap = self._build_name2obj_dict(self.graph.value_info)
  
file_path: catboost/contrib/libs/onnx/onnx/utils.py
imports: import os
  from typing import List, Tuple
  import onnx.checker
  import onnx.helper
  import onnx.shape_inference
  from onnx import FunctionProto, ModelProto, NodeProto, TensorProto, ValueInfoProto
label_desc: Use image node_id 1 to create a new Extractor object  with example: obj = Extractor(model)