message: Just don't output opset_version in the example then.
diff: "name": "stdout",
  "output_type": "stream",
  "text": [
  - "The model is:\n",
  - "ir_version: 3\n",
  - "producer_name: \"onnx-example\"\n",
  - "graph {\n",
  + "The ir_version in model: 3\n",
  + "\n",
  + "The producer_name in model: onnx-example\n",
  + "\n",
  + "The graph in model:\n",
  "node {\n",
  " input: \"X\"\n",
  " output: \"Y\"\n",
  " }\n",
  " }\n",
  "}\n",
  - "}\n",
  - "opset_import {\n",
  - " version: 6\n",
  - "}\n",
  "\n",
  "The model is checked!\n"
  ]
  ")\n",
  "\n",
  "# Create the model (ModelProto)\n",
  - "model_def = helper.make_model(graph_def, producer_name='onnx-example')\n",
  + "model_def = helper.make_model(graph_def,\n",
  + " producer_name='onnx-example')\n",
  "\n",
  - "print('The model is:\\n{}'.format(model_def))\n",
  + "print('The ir_version in model: {}\\n'.format(model_def.ir_version))\n",
  + "print('The producer_name in model: {}\\n'.format(model_def.producer_name))\n",
  + "print('The graph in model:\\n{}'.format(model_def.graph))\n",
  "onnx.checker.check_model(model_def)\n",
  "print('The model is checked!')"
  ]
  