code: def test_onnx_save_load_model_uses_the_custom_serializer(
      self,
  ) -> None:
      model = onnx.parser.parse_model(_TEST_MODEL)
      with tempfile.TemporaryDirectory() as tmpdir:
          model_path = os.path.join(tmpdir, "model.onnx")
          onnx.save_model(model, model_path, format="onnxtext")
  
          # Check the file content
          with open(model_path, encoding="utf-8") as f:
              content = f.read()
              self.assertEqual(content, onnx.printer.to_text(model))
  
          loaded_model = onnx.load_model(model_path, format="onnxtext")
  
          self.assertEqual(
              model.SerializeToString(deterministic=True),
              loaded_model.SerializeToString(deterministic=True),
          )
  
file_path: onnx/onnx/test/serialization_test.py
imports: import os
  import tempfile
  import unittest
  import onnx
label_desc: Use image node_id 4 for calling the TestRegistry obj's underlying member method code with example usage: obj.test_onnx_save_load_model_uses_the_custom_serializer() without return types