code: def load_caffe2_net(file):
      net = caffe2_pb2.NetDef()
      with open(file, "rb") as f:
          net.ParseFromString(f.read())
      return net
  
file_path: pytorch/caffe2/python/onnx/helper.py
imports: from caffe2.proto import caffe2_pb2
  from onnx.backend.base import namedtupledict
  from caffe2.python.onnx.workspace import Workspace
  import logging
  import time
label_desc: Use image node_id 3 for calling a global function with example usage: load_caffe2_net(file) and returns: net