code: def test_version_exists(self) -> None:
      model = onnx.ModelProto()
      # When we create it, graph should not have a version string.
      self.assertFalse(model.HasField("ir_version"))
      # We should touch the version so it is annotated with the current
      # ir version of the running ONNX
      model.ir_version = onnx.IR_VERSION
      model_string = model.SerializeToString()
      model.ParseFromString(model_string)
      self.assertTrue(model.HasField("ir_version"))
      # Check if the version is correct.
      self.assertEqual(model.ir_version, onnx.IR_VERSION)
  
imports: import io
  import os
  import pathlib
  import tempfile
  import unittest
  import google.protobuf.message
  import google.protobuf.text_format
  import parameterized
  import onnx
  from onnx import serialization
label_desc: Use image node_id 2 for calling the TestBasicFunctions obj's underlying member method code with example usage: obj.test_version_exists() without return types