code: def convert_onnx(**kwargs):
      # https://github.com/onnx/tensorflow-onnx
      # sys.argv = ['checkpoint2onnx.py',
      #             "--inputs", FLAGS.input_nodes,
      #             "--outputs", FLAGS.output_nodes]
      sys.argv = ["convert.py", "--opset", FLAGS.opset]
      # add specific arguments for conversions from different source format
      for k, v in kwargs.items():
          sys.argv.extend(["--%s" % k, "%s" % v])
      convert.main()
  
imports: import sys
  from tf2onnx import convert
  from absl import flags
label_desc: Use image node_id 1 for calling a global function with example usage: convert_onnx() without return types