code: def _test_model_conversion(
      self, to_opset: int, model: str | onnx.ModelProto
  ) -> None:
      if isinstance(model, str):
          model = onnx.parser.parse_model(model)
      onnx.checker.check_model(model)
      shape_inference.infer_shapes(model, strict_mode=True)
  
      converted = version_converter.convert_version(model, to_opset)
      onnx.checker.check_model(converted)
      shape_inference.infer_shapes(converted, strict_mode=True)
  
file_path: onnx/onnx/test/version_converter/automatic_conversion_test_base.py
imports: from __future__ import annotations
  import string
  import unittest
  from typing import Any, List, Sequence, cast
  import onnx
  from onnx import TensorProto, ValueInfoProto, helper, shape_inference, version_converter
label_desc: Use image node_id 1 for calling the TestAutomaticConversion obj's underlying member method code with example usage: obj._test_model_conversion(to_opset, model) without return types