code: def getGraph(onnx_path):
      model = onnx.load(onnx_path)
      output_names = [node.name for node in model.graph.output]
      model = shape_inference.infer_shapes(model)
      model_graph = model.graph
      graph = Graph.from_onnx(model_graph)
      graph = graph.transformed(transformers)
      graph.channel_dims = {}
  
      return graph, output_names
  
file_path: insightface/tools/onnx2caffe/convertCaffe.py
imports: import sys
  import caffe
  import onnx
  import numpy
  from caffe.proto import caffe_pb2
  from onnx2caffe._transformers import ConvAddFuser, ConstantsToInitializers
  from onnx2caffe._graph import Graph
  import onnx2caffe._operators
  import onnx2caffe._weightloader
  from onnx2caffe._error_utils import ErrorHandling
  from collections import OrderedDict
  from onnx import shape_inference
  import importlib
label_desc: Use image node_id 2 for calling a global function with example usage: getGraph(onnx_path) and returns: graph,  output_names