code: def set_model_version(model, version):
      
      if model is None or not isinstance(model, onnx_proto.ModelProto):
          raise ValueError("Model is not a valid ONNX model.")
      if not convert_utils.is_numeric_type(version):
          raise ValueError("Version must be a numeric type.")
      model.model_version = version
docs: Sets the version of the ONNX model.
  
      :param model: instance of an ONNX model
      :param version: integer containing the version of the model
  
      Example:
  
      ::
          from onnxmltools.utils import set_model_version
          onnx_model = load_model("SqueezeNet.onnx")
          set_model_version(onnx_model, 1)