code: def caffe2_net_to_onnx_model(cls, *args, **kwargs):
      opset_id = OperatorSetIdProto()
      opset_id.domain = ""  # ONNX default domain
      opset_id.version = cls.target_opset_version
      model = make_model(
          cls.caffe2_net_to_onnx_graph(*args, **kwargs),
          opset_imports=[opset_id],  # current supported opset version
          producer_name="onnx-caffe2",  # producer name
      )
      checker.check_model(model)
      return model
  
imports: import collections
  import itertools
  import logging
  import re
  from caffe2.python import core
  from onnx import checker, helper, numpy_helper, mapping, GraphProto, NodeProto, TensorProto, OperatorSetIdProto
  from onnx.helper import make_tensor_value_info, make_model
  import numpy
  from caffe2.python.onnx.helper import c2_native_run_net
  import caffe2.python._import_c_extension
label_desc: Use image node_id 13 for calling the Caffe2Frontend obj's underlying member method code with example usage: obj.caffe2_net_to_onnx_model(cls) and returns: model